HEX to HSL: #CD5C5C

Also known as: CSS indianred

Result

#CD5C5C → hsl(0 53% 58%)

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. RGB ÷ 255

    R = 0.8039
    G = 0.3608
    B = 0.3608
  2. 2. max, min, Δ

    max = 0.8039
    min = 0.3608
    Δ = max − min = 0.4431
  3. 3. L

    L = (max + min) / 2 = 0.5824 = 58.24%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.5305 = 53.05%
  5. 5. H

    max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.3608 − 0.3608) / 0.4431) mod 6) = 0.00°
  6. 6. HSL

    hsl(0.00 53.05% 58.24%)

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?