OKLCH to HEX: #CD5C5C

Also known as: CSS indianred

Result

oklch(0.61544 0.14415 22.228) → #CD5C5C

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. input

    oklch(0.61544 0.14415 22.228)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.13344
    b = C·sin H = 0.05453
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.680094
    m′ = L − 0.1056·a − 0.0639·b = 0.597872
    s′ = L − 0.0895·a − 1.2915·b = 0.533073
  4. 4. cube

    l = 0.680094³ = 0.314563
    m = 0.597872³ = 0.213710
    s = 0.533073³ = 0.151482
  5. 5. LMS → linear sRGB

    R = 4.0767·l − 3.3077·m + 0.2310·s = 0.610488
    G = −1.2684·l + 2.6098·m − 0.3413·s = 0.107024
    B = −0.0042·l − 0.7034·m + 1.7076·s = 0.107025
  6. 6. linear → sRGB, × 255

    R = 0.80392 × 255 = 205.00 → 205
    G = 0.36079 × 255 = 92.00 → 92
    B = 0.36079 × 255 = 92.00 → 92
  7. 7. RGB → HEX

    #CD5C5C

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?