OKLCH to HEX: #FAF0E6

Also known as: CSS linen

Result

oklch(0.96024 0.01715 67.622) → #FAF0E6

Values are shown at full precision, so converting back gives exactly #faf0e6. 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.96024 0.01715 67.622)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.00653
    b = C·sin H = 0.01586
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.966250
    m′ = L − 0.1056·a − 0.0639·b = 0.958538
    s′ = L − 0.0895·a − 1.2915·b = 0.939175
  4. 4. cube

    l = 0.966250³ = 0.902129
    m = 0.958538³ = 0.880700
    s = 0.939175³ = 0.828398
  5. 5. LMS → linear sRGB

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

    R = 0.98039 × 255 = 250.00 → 250
    G = 0.94118 × 255 = 240.00 → 240
    B = 0.90196 × 255 = 230.00 → 230
  7. 7. RGB → HEX

    #FAF0E6

All formats

HEX
#faf0e6
RGB
rgb(250 240 230)
RGB (legacy)
rgb(250, 240, 230)
HSL
hsl(30.00 66.67% 94.12%) → hsl(30 67% 94%)
HWB
hwb(30 90% 2%)
OKLCH
oklch(0.960 0.017 67.6) · oklch(96.0% 0.017 67.6)
OKLab
oklab(0.960 0.007 0.016)
Lab (D50)
lab(95.39 2.23 6.11)
LCH (D50)
lch(95.39 6.50 69.93)
Display P3
color(display-p3 0.9736 0.9425 0.9063)
Linear sRGB
color(srgb-linear 0.9560 0.8714 0.7913)

Gamut: sRGB and Display P3

#FAF0E6 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.035; this color uses 62% of the sRGB chroma available.

CSS snippets

.element {
  color: #faf0e6;
  color: rgb(250 240 230);
  color: hsl(30 67% 94%);
  color: oklch(0.960 0.017 67.6);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.960 0.017 67.6);
}
/* arbitrary values */
class="text-[#faf0e6] bg-[oklch(0.960_0.017_67.6)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9736 0.9425 0.9063); }
}

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

  • #FFFDF3 · oklch(1.000 0.017 67.6) · ΔL +0.06
  • #E6DCD2 · oklch(0.900 0.017 67.6) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?