HSL to HEX: #EEE8AA

Also known as: CSS palegoldenrod

Result

hsl(54.71 66.67% 80.00%) → #EEE8AA

Values are shown at full precision, so converting back gives exactly #eee8aa. 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

    H = 54.71°, S = 66.67%, L = 80.00%
  2. 2. C

    C = (1 − |2L − 1|) × S = 0.26668
  3. 3. X

    X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.24317   (H / 60° = 0.9118, sector 0)
  4. 4. m

    m = L − C / 2 = 0.66666
  5. 5. (R′, G′, B′) + m

    (R′, G′, B′) = (0.26668, 0.24317, 0.00000)
    R = round((0.26668 + 0.66666) × 255) = 238
    G = round((0.24317 + 0.66666) × 255) = 232
    B = round((0.00000 + 0.66666) × 255) = 170
  6. 6. RGB → HEX

    #EEE8AA

All formats

HEX
#eee8aa
RGB
rgb(238 232 170)
RGB (legacy)
rgb(238, 232, 170)
HSL
hsl(54.71 66.67% 80.00%) → hsl(55 67% 80%)
HWB
hwb(55 67% 7%)
OKLCH
oklch(0.921 0.080 103.2) · oklch(92.1% 0.080 103.2)
OKLab
oklab(0.921 -0.018 0.078)
Lab (D50)
lab(91.37 -4.82 31.04)
LCH (D50)
lch(91.37 31.42 98.82)
Display P3
color(display-p3 0.9292 0.9106 0.6937)
Linear sRGB
color(srgb-linear 0.8550 0.8070 0.4020)

Gamut: sRGB and Display P3

#EEE8AA is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.194 and Display P3 reaches 0.225; this color uses 41% of the sRGB chroma available.

CSS snippets

.element {
  color: #eee8aa;
  color: rgb(238 232 170);
  color: hsl(55 67% 80%);
  color: oklch(0.921 0.080 103.2);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.921 0.080 103.2);
}
/* arbitrary values */
class="text-[#eee8aa] bg-[oklch(0.921_0.080_103.2)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9292 0.9106 0.6937); }
}

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

  • #FFFCBD · oklch(0.981 0.080 103.2) · ΔL +0.06
  • #DAD497 · oklch(0.861 0.080 103.2) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?