OKLCH to HEX: #FFFBEB

Also known as: Tailwind amber-50, Tailwind v3 amber-50

Result

oklch(0.98688 0.02140 95.277) → #FFFBEB

Values are shown at full precision, so converting back gives exactly #fffbeb. 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.98688 0.02140 95.277)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.00197
    b = C·sin H = 0.02131
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.990699
    m′ = L − 0.1056·a − 0.0639·b = 0.985727
    s′ = L − 0.0895·a − 1.2915·b = 0.959535
  4. 4. cube

    l = 0.990699³ = 0.972354
    m = 0.985727³ = 0.957789
    s = 0.959535³ = 0.883452
  5. 5. LMS → linear sRGB

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

    R = 1.00000 × 255 = 255.00 → 255
    G = 0.98431 × 255 = 251.00 → 251
    B = 0.92158 × 255 = 235.00 → 235
  7. 7. RGB → HEX

    #FFFBEB

All formats

HEX
#fffbeb
RGB
rgb(255 251 235)
RGB (legacy)
rgb(255, 251, 235)
HSL
hsl(48.00 100.00% 96.08%) → hsl(48 100% 96%)
HWB
hwb(48 92% 0%)
OKLCH
oklch(0.987 0.021 95.3) · oklch(98.7% 0.021 95.3)
OKLab
oklab(0.987 -0.002 0.021)
Lab (D50)
lab(98.61 -0.62 8.19)
LCH (D50)
lch(98.61 8.22 94.34)
Display P3
color(display-p3 0.9972 0.9848 0.9277)
Linear sRGB
color(srgb-linear 1.0000 0.9647 0.8308)

Gamut: sRGB and Display P3

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

CSS snippets

.element {
  color: #fffbeb;
  color: rgb(255 251 235);
  color: hsl(48 100% 96%);
  color: oklch(0.987 0.021 95.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.987 0.021 95.3);
}
/* arbitrary values */
class="text-[#fffbeb] bg-[oklch(0.987_0.021_95.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9972 0.9848 0.9277); }
}

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

  • #FFFFEF · oklch(1.000 0.021 95.3) · ΔL +0.06
  • #EBE7D7 · oklch(0.927 0.021 95.3) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?