HEX to OKLCH: #FCCEE8

Also known as: Tailwind pink-200

Result

#FCCEE8 → oklch(0.898 0.061 343.4)

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

    R: 252/255 = 0.98824 → 0.973445  (((x + 0.055) / 1.055)^2.4)
    G: 206/255 = 0.80784 → 0.617207  (((x + 0.055) / 1.055)^2.4)
    B: 232/255 = 0.90980 → 0.806952  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.773817
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.713073
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.768199
  3. 3. cube root

    l′ = ∛0.773817 = 0.918078
    m′ = ∛0.713073 = 0.893397
    s′ = ∛0.768199 = 0.915851
  4. 4. LMS′ → Oklab

    L = 0.2105·l′ + 0.7936·m′ − 0.0041·s′ = 0.89850
    a = 1.9780·l′ − 2.4286·m′ + 0.4506·s′ = 0.05894
    b = 0.0259·l′ + 0.7828·m′ − 0.8087·s′ = -0.01752
  5. 5. Oklab → OKLCH

    C = √(a² + b²) = 0.06148
    H = atan2(b, a) = 343.446°
    L = 0.89850
  6. 6. OKLCH

    oklch(0.89850 0.06148 343.446)
    rounded: oklch(0.898 0.061 343.4)

All formats

HEX
#fccee8
RGB
rgb(252 206 232)
RGB (legacy)
rgb(252, 206, 232)
HSL
hsl(326.09 88.46% 89.80%) → hsl(326 88% 90%)
HWB
hwb(326 81% 1%)
OKLCH
oklch(0.898 0.061 343.4) · oklch(89.8% 0.061 343.4)
OKLab
oklab(0.899 0.059 -0.018)
Lab (D50)
lab(87.39 19.77 -6.43)
LCH (D50)
lch(87.39 20.79 341.98)
Display P3
color(display-p3 0.9594 0.8147 0.9044)
Linear sRGB
color(srgb-linear 0.9734 0.6172 0.8070)

Gamut: sRGB and Display P3

#FCCEE8 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.068 and Display P3 reaches 0.091; this color uses 90% of the sRGB chroma available.

CSS snippets

.element {
  color: #fccee8;
  color: rgb(252 206 232);
  color: hsl(326 88% 90%);
  color: oklch(0.898 0.061 343.4);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.898 0.061 343.4);
}
/* arbitrary values */
class="text-[#fccee8] bg-[oklch(0.898_0.061_343.4)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9594 0.8147 0.9044); }
}

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

  • #FFE2FC · oklch(0.958 0.061 343.4) · ΔL +0.06
  • #E8BBD4 · oklch(0.839 0.061 343.4) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?