HEX to HSL: #E9967A

Also known as: CSS darksalmon

Result

#E9967A → hsl(15 72% 70%)

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

    max = 0.9137
    min = 0.4784
    Δ = max − min = 0.4353
  3. 3. L

    L = (max + min) / 2 = 0.6961 = 69.61%
  4. 4. S

    S = Δ / (1 − |2L − 1|) = 0.7161 = 71.61%
  5. 5. H

    max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.5882 − 0.4784) / 0.4353) mod 6) = 15.14°
  6. 6. HSL

    hsl(15.14 71.61% 69.61%)

All formats

HEX
#e9967a
RGB
rgb(233 150 122)
RGB (legacy)
rgb(233, 150, 122)
HSL
hsl(15.14 71.61% 69.61%) → hsl(15 72% 70%)
HWB
hwb(15 48% 9%)
OKLCH
oklch(0.751 0.108 39.4) · oklch(75.1% 0.108 39.4)
OKLab
oklab(0.751 0.084 0.069)
Lab (D50)
lab(70.30 29.89 28.41)
LCH (D50)
lch(70.30 41.23 43.54)
Display P3
color(display-p3 0.8673 0.6029 0.4991)
Linear sRGB
color(srgb-linear 0.8148 0.3050 0.1946)

Gamut: sRGB and Display P3

#E9967A is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.155 and Display P3 reaches 0.197; this color uses 70% of the sRGB chroma available.

CSS snippets

.element {
  color: #e9967a;
  color: rgb(233 150 122);
  color: hsl(15 72% 70%);
  color: oklch(0.751 0.108 39.4);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.751 0.108 39.4);
}
/* arbitrary values */
class="text-[#e9967a] bg-[oklch(0.751_0.108_39.4)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.8673 0.6029 0.4991); }
}

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

  • #FEA98C · oklch(0.811 0.108 39.4) · ΔL +0.06
  • #D58368 · oklch(0.691 0.108 39.4) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?