OKLCH to HEX: #FFFACD

Also known as: CSS lemonchiffon

Result

oklch(0.97781 0.05822 102.156) → #FFFACD

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

    oklch(0.97781 0.05822 102.156)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.01226
    b = C·sin H = 0.05691
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.985233
    m′ = L − 0.1056·a − 0.0639·b = 0.975470
    s′ = L − 0.0895·a − 1.2915·b = 0.905403
  4. 4. cube

    l = 0.985233³ = 0.956351
    m = 0.975470³ = 0.928200
    s = 0.905403³ = 0.742207
  5. 5. LMS → linear sRGB

    R = 4.0767·l − 3.3077·m + 0.2310·s = 1.000006
    G = −1.2684·l + 2.6098·m − 0.3413·s = 0.955975
    B = −0.0042·l − 0.7034·m + 1.7076·s = 0.610478
  6. 6. linear → sRGB, × 255

    R = 1.00000 × 255 = 255.00 → 255
    G = 0.98039 × 255 = 250.00 → 250
    B = 0.80391 × 255 = 205.00 → 205
  7. 7. RGB → HEX

    #FFFACD

All formats

HEX
#fffacd
RGB
rgb(255 250 205)
RGB (legacy)
rgb(255, 250, 205)
HSL
hsl(54.00 100.00% 90.20%) → hsl(54 100% 90%)
HWB
hwb(54 80% 0%)
OKLCH
oklch(0.978 0.058 102.2) · oklch(97.8% 0.058 102.2)
OKLab
oklab(0.978 -0.012 0.057)
Lab (D50)
lab(97.83 -3.52 22.32)
LCH (D50)
lch(97.83 22.60 98.97)
Display P3
color(display-p3 0.9966 0.9811 0.8222)
Linear sRGB
color(srgb-linear 1.0000 0.9560 0.6105)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #fffacd;
  color: rgb(255 250 205);
  color: hsl(54 100% 90%);
  color: oklch(0.978 0.058 102.2);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.978 0.058 102.2);
}
/* arbitrary values */
class="text-[#fffacd] bg-[oklch(0.978_0.058_102.2)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9966 0.9811 0.8222); }
}

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

  • #FFFFD4 · oklch(1.000 0.058 102.2) · ΔL +0.06
  • #EBE6BA · oklch(0.918 0.058 102.2) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?