HEX to HSL: #F08080

Also known as: CSS lightcoral

Result

#F08080 → hsl(0 79% 72%)

Values are shown at full precision, so converting back gives exactly #f08080. 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.9412
    G = 0.5020
    B = 0.5020
  2. 2. max, min, Δ

    max = 0.9412
    min = 0.5020
    Δ = max − min = 0.4392
  3. 3. L

    L = (max + min) / 2 = 0.7216 = 72.16%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.7887 = 78.87%
  5. 5. H

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

    hsl(0.00 78.87% 72.16%)

All formats

HEX
#f08080
RGB
rgb(240 128 128)
RGB (legacy)
rgb(240, 128, 128)
HSL
hsl(0.00 78.87% 72.16%) → hsl(0 79% 72%)
HWB
hwb(0 50% 6%)
OKLCH
oklch(0.725 0.138 21.0) · oklch(72.5% 0.138 21.0)
OKLab
oklab(0.725 0.129 0.049)
Lab (D50)
lab(66.65 43.82 20.51)
LCH (D50)
lch(66.65 48.39 25.08)
Display P3
color(display-p3 0.8834 0.5247 0.5138)
Linear sRGB
color(srgb-linear 0.8714 0.2159 0.2159)

Gamut: sRGB and Display P3

#F08080 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.171 and Display P3 reaches 0.218; this color uses 81% of the sRGB chroma available.

CSS snippets

.element {
  color: #f08080;
  color: rgb(240 128 128);
  color: hsl(0 79% 72%);
  color: oklch(0.725 0.138 21.0);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.725 0.138 21.0);
}
/* arbitrary values */
class="text-[#f08080] bg-[oklch(0.725_0.138_21.0)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.8834 0.5247 0.5138); }
}

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

  • #FF9392 · oklch(0.785 0.138 21.0) · ΔL +0.06
  • #DB6D6E · oklch(0.665 0.138 21.0) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?