HEX to OKLCH: #CD5C5C

Also known as: CSS indianred

Result

#CD5C5C → oklch(0.615 0.144 22.2)

Values are shown at full precision, so converting back gives exactly #cd5c5c. 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: 92/255 = 0.36078 → 0.107023  (((x + 0.055) / 1.055)^2.4)
    B: 92/255 = 0.36078 → 0.107023  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.314565
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.213711
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.151481
  3. 3. cube root

    l′ = ∛0.314565 = 0.680096
    m′ = ∛0.213711 = 0.597873
    s′ = ∛0.151481 = 0.533072
  4. 4. LMS′ → Oklab

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

    C = √(a² + b²) = 0.14415
    H = atan2(b, a) = 22.228°
    L = 0.61544
  6. 6. OKLCH

    oklch(0.61544 0.14415 22.228)
    rounded: oklch(0.615 0.144 22.2)

All formats

HEX
#cd5c5c
RGB
rgb(205 92 92)
RGB (legacy)
rgb(205, 92, 92)
HSL
hsl(0.00 53.05% 58.24%) → hsl(0 53% 58%)
HWB
hwb(0 36% 20%)
OKLCH
oklch(0.615 0.144 22.2) · oklch(61.5% 0.144 22.2)
OKLab
oklab(0.615 0.133 0.055)
Lab (D50)
lab(53.93 45.75 23.16)
LCH (D50)
lch(53.93 51.28 26.84)
Display P3
color(display-p3 0.7491 0.3867 0.3744)
Linear sRGB
color(srgb-linear 0.6105 0.1070 0.1070)

Gamut: sRGB and Display P3

#CD5C5C is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.248 and Display P3 reaches 0.280; this color uses 58% of the sRGB chroma available.

CSS snippets

.element {
  color: #cd5c5c;
  color: rgb(205 92 92);
  color: hsl(0 53% 58%);
  color: oklch(0.615 0.144 22.2);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.615 0.144 22.2);
}
/* arbitrary values */
class="text-[#cd5c5c] bg-[oklch(0.615_0.144_22.2)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.7491 0.3867 0.3744); }
}

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #cd5c5c 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

  • #E26F6D · oklch(0.675 0.144 22.2) · ΔL +0.06
  • #B8494B · oklch(0.555 0.144 22.2) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?