OKLCH to HEX: #FECACA

Also known as: Tailwind v3 red-200

Result

oklch(0.88454 0.05926 18.334) → #FECACA

Values are shown at full precision, so converting back gives exactly #fecaca. 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.88454 0.05926 18.334)
  2. 2. OKLCH → Oklab

    a = C·cos H = 0.05625
    b = C·sin H = 0.01864
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.910857
    m′ = L − 0.1056·a − 0.0639·b = 0.877412
    s′ = L − 0.0895·a − 1.2915·b = 0.855432
  4. 4. cube

    l = 0.910857³ = 0.755703
    m = 0.877412³ = 0.675477
    s = 0.855432³ = 0.625975
  5. 5. LMS → linear sRGB

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

    R = 0.99608 × 255 = 254.00 → 254
    G = 0.79215 × 255 = 202.00 → 202
    B = 0.79215 × 255 = 202.00 → 202
  7. 7. RGB → HEX

    #FECACA

All formats

HEX
#fecaca
RGB
rgb(254 202 202)
RGB (legacy)
rgb(254, 202, 202)
HSL
hsl(0.00 96.30% 89.41%) → hsl(0 96% 89%)
HWB
hwb(0 79% 0%)
OKLCH
oklch(0.885 0.059 18.3) · oklch(88.5% 0.059 18.3)
OKLab
oklab(0.885 0.056 0.019)
Lab (D50)
lab(85.99 19.00 7.41)
LCH (D50)
lch(85.99 20.39 21.30)
Display P3
color(display-p3 0.9640 0.8001 0.7962)
Linear sRGB
color(srgb-linear 0.9911 0.5906 0.5906)

Gamut: sRGB and Display P3

#FECACA is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.061 and Display P3 reaches 0.079; this color uses 97% of the sRGB chroma available.

CSS snippets

.element {
  color: #fecaca;
  color: rgb(254 202 202);
  color: hsl(0 96% 89%);
  color: oklch(0.885 0.059 18.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.885 0.059 18.3);
}
/* arbitrary values */
class="text-[#fecaca] bg-[oklch(0.885_0.059_18.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9640 0.8001 0.7962); }
}

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

  • #FFDEDD · oklch(0.945 0.059 18.3) · ΔL +0.06
  • #EAB7B7 · oklch(0.825 0.059 18.3) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?