HEX to OKLCH: #CD853F

Also known as: CSS peru

Result

#CD853F → oklch(0.678 0.123 62.2)

Values are shown at full precision, so converting back gives exactly #cd853f. The rounded form is what you normally paste into CSS.

Step-by-step math

Every number below is computed from the input, nothing is looked up.

  1. 1. sRGB → linear

    R: 205/255 = 0.80392 → 0.610496  (((x + 0.055) / 1.055)^2.4)
    G: 133/255 = 0.52157 → 0.234551  (((x + 0.055) / 1.055)^2.4)
    B: 63/255 = 0.24706 → 0.049707  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.380014
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.294363
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.151300
  3. 3. cube root

    l′ = ∛0.380014 = 0.724324
    m′ = ∛0.294363 = 0.665213
    s′ = ∛0.151300 = 0.532859
  4. 4. LMS′ → Oklab

    L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.67819
    a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.05728
    b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = 0.10856
  5. 5. Oklab → OKLCH

    C = √(a² + b²) = 0.12275
    H = atan2(b, a) = 62.182°
    L = 0.67819
  6. 6. OKLCH

    oklch(0.67819 0.12275 62.182)
    rounded: oklch(0.678 0.123 62.2)

All formats

HEX
#cd853f
RGB
rgb(205 133 63)
RGB (legacy)
rgb(205, 133, 63)
HSL
hsl(29.58 58.68% 52.55%) → hsl(30 59% 53%)
HWB
hwb(30 25% 20%)
OKLCH
oklch(0.678 0.123 62.2) · oklch(67.8% 0.123 62.2)
OKLab
oklab(0.678 0.057 0.109)
Lab (D50)
lab(62.25 23.95 48.41)
LCH (D50)
lch(62.25 54.01 63.68)
Display P3
color(display-p3 0.7635 0.5342 0.2988)
Linear sRGB
color(srgb-linear 0.6105 0.2346 0.0497)

Gamut: sRGB and Display P3

#CD853F is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.156 and Display P3 reaches 0.178; this color uses 79% of the sRGB chroma available.

CSS snippets

.element {
  color: #cd853f;
  color: rgb(205 133 63);
  color: hsl(30 59% 53%);
  color: oklch(0.678 0.123 62.2);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.678 0.123 62.2);
}
/* arbitrary values */
class="text-[#cd853f] bg-[oklch(0.678_0.123_62.2)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.7635 0.5342 0.2988); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #cd853f calc(l - 0.1) c h); }

Nearby colors

Closest colors in the Tailwind and CSS named palettes (OKLab distance).

Lighter and darker, same hue and chroma

  • #E19853 · oklch(0.738 0.123 62.2) · ΔL +0.06
  • #B9732A · oklch(0.618 0.123 62.2) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?