HEX to HSL: #FA8072

Also known as: CSS salmon

Result

#FA8072 → hsl(6 93% 71%)

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

    max = 0.9804
    min = 0.4471
    Δ = max − min = 0.5333
  3. 3. L

    L = (max + min) / 2 = 0.7137 = 71.37%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.9315 = 93.15%
  5. 5. H

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

    hsl(6.18 93.15% 71.37%)

All formats

HEX
#fa8072
RGB
rgb(250 128 114)
RGB (legacy)
rgb(250, 128, 114)
HSL
hsl(6.18 93.15% 71.37%) → hsl(6 93% 71%)
HWB
hwb(6 45% 2%)
OKLCH
oklch(0.735 0.152 28.1) · oklch(73.5% 0.152 28.1)
OKLab
oklab(0.735 0.134 0.071)
Lab (D50)
lab(67.85 46.63 30.16)
LCH (D50)
lch(67.85 55.53 32.90)
Display P3
color(display-p3 0.9185 0.5275 0.4675)
Linear sRGB
color(srgb-linear 0.9560 0.2159 0.1683)

Gamut: sRGB and Display P3

#FA8072 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.162 and Display P3 reaches 0.207; this color uses 93% of the sRGB chroma available.

CSS snippets

.element {
  color: #fa8072;
  color: rgb(250 128 114);
  color: hsl(6 93% 71%);
  color: oklch(0.735 0.152 28.1);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.735 0.152 28.1);
}
/* arbitrary values */
class="text-[#fa8072] bg-[oklch(0.735_0.152_28.1)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9185 0.5275 0.4675); }
}

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

  • #FF9384 · oklch(0.795 0.152 28.1) · ΔL +0.06
  • #E56D60 · oklch(0.675 0.152 28.1) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?