HSL to HEX: #FFDAB9

Also known as: CSS peachpuff

Result

hsl(28.29 100.00% 86.27%) → #FFDAB9

Values are shown at full precision, so converting back gives exactly #ffdab9. 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 = 28.29°, S = 100.00%, L = 86.27%
  2. 2. C

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

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

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

    (R′, G′, B′) = (0.27460, 0.12947, 0.00000)
    R = round((0.27460 + 0.72540) × 255) = 255
    G = round((0.12947 + 0.72540) × 255) = 218
    B = round((0.00000 + 0.72540) × 255) = 185
  6. 6. RGB → HEX

    #FFDAB9

All formats

HEX
#ffdab9
RGB
rgb(255 218 185)
RGB (legacy)
rgb(255, 218, 185)
HSL
hsl(28.29 100.00% 86.27%) → hsl(28 100% 86%)
HWB
hwb(28 73% 0%)
OKLCH
oklch(0.911 0.060 63.7) · oklch(91.1% 0.060 63.7)
OKLab
oklab(0.911 0.027 0.054)
Lab (D50)
lab(89.60 9.78 21.32)
LCH (D50)
lch(89.60 23.46 65.35)
Display P3
color(display-p3 0.9763 0.8602 0.7416)
Linear sRGB
color(srgb-linear 1.0000 0.7011 0.4851)

Gamut: sRGB and Display P3

#FFDAB9 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.060 and Display P3 reaches 0.076; this color uses 100% of the sRGB chroma available.

CSS snippets

.element {
  color: #ffdab9;
  color: rgb(255 218 185);
  color: hsl(28 100% 86%);
  color: oklch(0.911 0.060 63.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.911 0.060 63.7);
}
/* arbitrary values */
class="text-[#ffdab9] bg-[oklch(0.911_0.060_63.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9763 0.8602 0.7416); }
}

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

  • #FFEECC · oklch(0.971 0.060 63.7) · ΔL +0.06
  • #EBC7A6 · oklch(0.851 0.060 63.7) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?