OKLCH to HEX: #ECFCCB

Also known as: Tailwind v3 lime-100

Result

oklch(0.96693 0.06591 122.328) → #ECFCCB

Values are shown at full precision, so converting back gives exactly #ecfccb. 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.96693 0.06591 122.328)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.03525
    b = C·sin H = 0.05569
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.964979
    m′ = L − 0.1056·a − 0.0639·b = 0.967094
    s′ = L − 0.0895·a − 1.2915·b = 0.898156
  4. 4. cube

    l = 0.964979³ = 0.898575
    m = 0.967094³ = 0.904496
    s = 0.898156³ = 0.724528
  5. 5. LMS → linear sRGB

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

    R = 0.92549 × 255 = 236.00 → 236
    G = 0.98823 × 255 = 252.00 → 252
    B = 0.79608 × 255 = 203.00 → 203
  7. 7. RGB → HEX

    #ECFCCB

All formats

HEX
#ecfccb
RGB
rgb(236 252 203)
RGB (legacy)
rgb(236, 252, 203)
HSL
hsl(79.59 89.09% 89.22%) → hsl(80 89% 89%)
HWB
hwb(80 80% 1%)
OKLCH
oklch(0.967 0.066 122.3) · oklch(96.7% 0.066 122.3)
OKLab
oklab(0.967 -0.035 0.056)
Lab (D50)
lab(96.85 -11.53 21.71)
LCH (D50)
lch(96.85 24.59 117.97)
Display P3
color(display-p3 0.9370 0.9862 0.8144)
Linear sRGB
color(srgb-linear 0.8388 0.9734 0.5972)

Gamut: sRGB and Display P3

#ECFCCB is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.094 and Display P3 reaches 0.101; this color uses 70% of the sRGB chroma available.

CSS snippets

.element {
  color: #ecfccb;
  color: rgb(236 252 203);
  color: hsl(80 89% 89%);
  color: oklch(0.967 0.066 122.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.967 0.066 122.3);
}
/* arbitrary values */
class="text-[#ecfccb] bg-[oklch(0.967_0.066_122.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9370 0.9862 0.8144); }
}

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

  • #F7FFD6 · oklch(1.000 0.066 122.3) · ΔL +0.06
  • #D8E8B8 · oklch(0.907 0.066 122.3) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?