HSL to HEX: #FDF5E6

Also known as: CSS oldlace

Result

hsl(39.13 85.19% 94.71%) → #FDF5E6

Values are shown at full precision, so converting back gives exactly #fdf5e6. 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 = 39.13°, S = 85.19%, L = 94.71%
  2. 2. C

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

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

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

    (R′, G′, B′) = (0.09013, 0.05878, 0.00000)
    R = round((0.09013 + 0.90203) × 255) = 253
    G = round((0.05878 + 0.90203) × 255) = 245
    B = round((0.00000 + 0.90203) × 255) = 230
  6. 6. RGB → HEX

    #FDF5E6

All formats

HEX
#fdf5e6
RGB
rgb(253 245 230)
RGB (legacy)
rgb(253, 245, 230)
HSL
hsl(39.13 85.19% 94.71%) → hsl(39 85% 95%)
HWB
hwb(39 90% 1%)
OKLCH
oklch(0.972 0.022 83.3) · oklch(97.2% 0.022 83.3)
OKLab
oklab(0.972 0.003 0.021)
Lab (D50)
lab(96.87 0.91 8.25)
LCH (D50)
lch(96.87 8.30 83.68)
Display P3
color(display-p3 0.9867 0.9618 0.9080)
Linear sRGB
color(srgb-linear 0.9823 0.9131 0.7913)

Gamut: sRGB and Display P3

#FDF5E6 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.028 and Display P3 reaches 0.034; this color uses 78% of the sRGB chroma available.

CSS snippets

.element {
  color: #fdf5e6;
  color: rgb(253 245 230);
  color: hsl(39 85% 95%);
  color: oklch(0.972 0.022 83.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.972 0.022 83.3);
}
/* arbitrary values */
class="text-[#fdf5e6] bg-[oklch(0.972_0.022_83.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9867 0.9618 0.9080); }
}

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

  • #FFFEEF · oklch(1.000 0.022 83.3) · ΔL +0.06
  • #E9E1D2 · oklch(0.912 0.022 83.3) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?