CSS named color

Peru #CD853F

The CSS keyword peru is #CD853F. It is a light soft orange in the orange family. In OKLCH it sits at lightness 0.678, chroma 0.123 and hue 62.2°.

Relative luminance
0.3011
OKLCH L · C · h
0.678 · 0.123 · 62.2
Best text
Black 7.02:1
Hue family
Orange

#CD853F color codes

HEX
#CD853F
RGB
rgb(205, 133, 63)
HSL
hsl(30, 59%, 53%)
OKLCH
oklch(0.678 0.123 62.2)
OKLab
oklab(0.678 0.057 0.109)
CIELAB (D65)
L* 61.75, a* 21.40, b* 47.92
XYZ (D65)
X 34.46, Y 30.12, Z 8.70
CMYK (naive)
cmyk(0%, 35%, 69%, 20%)

CIELAB and XYZ use the D65 white point; CSS lab() uses D50, so paste the OKLCH or HEX value into stylesheets. CMYK here is a plain formula with no press profile.

Legibility

Contrast: is #CD853F accessible?

Black text on it reaches 7.02:1, passing AAA. White text fails at 2.99:1.

WCAG 2 gives the same ratio whichever color is the text; APCA does not, so its Lc changes sign and size with polarity.

Open the Contrast System
  • Black text on it

    7.02:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc +47
  • White text on it

    2.99:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc −61
  • As text on black

    7.02:1

    • AA passes
    • AA large passes
    • AAA passes
    • APCA Lc −45
  • As text on white

    2.99:1

    • AA fails
    • AA large fails
    • AAA fails
    • APCA Lc +56

Nearest versions that pass 4.5:1

  • For text on white

    #AB6518 4.55:1

    Darkening its OKLCH lightness from 0.68 to 0.57 reaches 4.55:1 on white, keeping the hue.

  • For text on black

    #CD853F 7.02:1

    It already reaches 7.02:1 on black, so no change is needed.

Checking another pair? Use the Contrast Checker.

Studio

Adjust #CD853F live

Move lightness, chroma and hue in OKLCH, or drag on the map. The map is every lightness and chroma at the current hue: sRGB inside the solid area, Display P3 out to the dashed line.

The studio needs JavaScript.

Scale

Shades and tints of #CD853F

Eleven OKLCH lightness steps at this hue, each with its contrast against white and black. #CD853F sits at step 400.

  1. 50#FFF3E8
    White
    1.09
    Black
    19.23
  2. 100#FFE6D1
    White
    1.20
    Black
    17.49
  3. 200#FFCCA0
    White
    1.45
    Black
    14.39
  4. 300#F3AD6D
    White
    1.90
    Black
    11.00
  5. 400This color#CD853F
    White
    2.99
    Black
    7.02
  6. 500#BA732B
    White
    3.76
    Black
    5.57
  7. 600#A05C06
    White
    5.21
    Black
    4.02
  8. 700#814800
    White
    7.34
    Black
    2.86
  9. 800#5F3300
    White
    10.71
    Black
    1.96
  10. 900#3F2000
    White
    14.81
    Black
    1.41
  11. 950#251000
    White
    18.21
    Black
    1.15

Under each step, white and black text on it; a bold figure passes 4.5:1.

Gamut

How vivid #CD853F can get

At its lightness and hue, sRGB reaches OKLCH chroma 0.156; #CD853F uses 79% of it. Display P3, which many recent phones and laptops show, reaches 0.178 there: 14% more.

0.00.20.40.60.80.20.40.60.8 460480500520540560580600620
  • sRGB
  • Display P3
  • Rec. 2020
  • Dominant wavelength
OKLCH chroma
0.123
sRGB edge
0.156
Display P3 edge
0.178
Rec. 2020 edge
0.181
Dominant wavelength
586 nm
Excitation purity
67%
Chromaticity
x 0.4703, y 0.4110
  • This color#CD853F
  • Most vivid in sRGB#DA7E00
  • Most vivid in Display P3oklch(0.678 0.178 62.2)

On a screen without Display P3 the last tile shows the sRGB edge instead.

Use the wider color where screens show it
.accent {
  color: #cd853f;
}
@media (color-gamut: p3) {
  .accent { color: color(display-p3 0.8327 0.4927 0); }
}

Mixing

Mixing #CD853F

Each row is the same mix worked out in a different space, with the halfway color at its end. sRGB, which older CSS gradients use, can sag gray or dark in the middle; OKLab keeps the lightness steps even; OKLCH holds chroma and hue as it goes.

White #FFFFFF

  • sRGB50%#E6C29F
  • OKLab50%#E8C2A2
  • OKLCH50%#E8C2A2

Black #000000

  • sRGB50%#674320
  • OKLab50%#4E3012
  • OKLCH50%#4E3012

Its complement #49A0DD

  • sRGB50%#8B938E
  • OKLab50%#989898
  • OKLCH50%#C47AB9
In CSS
/* A gradient and a mix, worked out in OKLCH */
background: linear-gradient(in oklch, #cd853f, white);
color: color-mix(in oklch, #cd853f 50%, white);

In use

#CD853F in an interface

A button, a link, a heading, a focused field, an icon and a chart line in this color, on a light page and a dark one. Each check is a WCAG 2 contrast minimum: 1.4.3 for text, 1.4.11 for the rest.

Light page

  • Button labelText, 4.5:17.02:1 Passes
  • Link and body-size textText, 4.5:12.99:1 Fails
  • Large headingLarge text, 3:12.99:1 Fails
  • Icons, borders and focus ringsNon-text, 3:12.99:1 Fails

For text on this page, the nearest shade that passes is #AB6518 4.55:1

Dark page

  • Button labelText, 4.5:17.02:1 Passes
  • Link and body-size textText, 4.5:16.26:1 Passes
  • Large headingLarge text, 3:16.26:1 Passes
  • Icons, borders and focus ringsNon-text, 3:16.26:1 Passes

Color vision

How #CD853F looks with color blindness

Achromatopsia changes it most, ΔE2000 24.3; protanopia changes it least, 18.0.

Simulated with Machado et al. (2009) at full severity, in linear light.

Simulate a whole page What each type sees
  • Protanopia

    No working red (long-wavelength) cones

    #9B8B37 ΔE2000 18.0

    Distinct

    Reads as soft amber

  • Deuteranopia

    No working green (medium-wavelength) cones

    #AC9C40 ΔE2000 18.6

    Distinct

    Reads as light soft amber

  • Tritanopia

    No working blue (short-wavelength) cones

    #DF7576 ΔE2000 23.4

    Distinct

    Reads as light soft red

  • Achromatopsia

    No cone color vision; lightness only

    #959595 ΔE2000 24.3

    Distinct

    Reads as gray

Pairing check

Checked against its complement, #49A0DD. Their lightness contrast is only 1.04:1, so where hue collapses, add a label, icon or pattern.

VisionThe pairΔE2000Verdict
Normal vision#CD853F · #49A0DD45.5Stays distinct
Protanopia#9B8B37 · #84A1E047.5Stays distinct
Deuteranopia#AC9C40 · #7092DC50.9Stays distinct
Tritanopia#DF7576 · #00AFB552.1Stays distinct
Achromatopsia#959595 · #9999991.3Easily confused

Harmony

Color harmonies for #CD853F

Its complement is #49A0DD, a light soft blue, on the cool side of the wheel.

Hue rotations in OKLCH, mapped into sRGB by trimming chroma so hue and lightness stay put.

Open the Harmony Studio
  • Base#CD853F
  • Complement#49A0DD

Complementary

Open in Harmony Studio
  • −30°#D97966
  • Base#CD853F
  • +30°#B3952D
  • Base#CD853F
  • +120°#00B09E
  • +240°#A684D6
  • Base#CD853F
  • +150°#00AAC2
  • +210°#7E92E3

Split-complementary

Open in Harmony Studio

Code

Design tokens

Ready-to-paste tokens in six formats. Rename them to fit your system.

CSS custom property

:root {
  --color-peru: #cd853f;
}

Tailwind config

// tailwind.config.js
module.exports = {
  theme: {
    extend: {
      colors: {
        peru: '#cd853f',
      },
    },
  },
};

Tailwind v4 theme

/* app.css — Tailwind CSS v4 */
@import "tailwindcss";

@theme {
  --color-peru: oklch(0.678 0.123 62.2);
}

Design token (W3C DTCG)

{
  "color": {
    "peru": {
      "$type": "color",
      "$value": {
        "colorSpace": "srgb",
        "components": [0.8039, 0.5216, 0.2471],
        "hex": "#cd853f"
      },
      "$description": "CSS named color peru"
    }
  }
}

SwiftUI color

import SwiftUI

enum Palette {
    static let peru = Color(.sRGB, red: 0.804, green: 0.522, blue: 0.247, opacity: 1)
}

Jetpack Compose color

import androidx.compose.ui.graphics.Color

object Palette {
    val Peru = Color(0xFFCD853F)
}

Matches

The nearest match in each system

The closest CSS name, Tailwind shade, RAL Classic paint and Crayola crayon by ΔE2000; under 2 is hard to tell apart side by side. RAL and Crayola values approximate physical colors.

Tools

Open #CD853F in the tools

Each opens over this page. More colors live in the Color Library, and every color page is listed on the hub.