OKLCH to HEX: #DCFCE7

Also known as: Tailwind green-100, Tailwind v3 green-100

Result

oklch(0.96241 0.04338 156.743) → #DCFCE7

Values are shown at full precision, so converting back gives exactly #dcfce7. 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.96241 0.04338 156.743)
  2. 2. OKLCH → Oklab

    a = C·cos H = -0.03986
    b = C·sin H = 0.01713
  3. 3. Oklab → LMS′

    l′ = L + 0.3963·a + 0.2158·b = 0.950310
    m′ = L − 0.1056·a − 0.0639·b = 0.965523
    s′ = L − 0.0895·a − 1.2915·b = 0.943855
  4. 4. cube

    l = 0.950310³ = 0.858216
    m = 0.965523³ = 0.900095
    s = 0.943855³ = 0.840844
  5. 5. LMS → linear sRGB

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

    R = 0.86274 × 255 = 220.00 → 220
    G = 0.98823 × 255 = 252.00 → 252
    B = 0.90588 × 255 = 231.00 → 231
  7. 7. RGB → HEX

    #DCFCE7

All formats

HEX
#dcfce7
RGB
rgb(220 252 231)
RGB (legacy)
rgb(220, 252, 231)
HSL
hsl(140.62 84.21% 92.55%) → hsl(141 84% 93%)
HWB
hwb(141 86% 1%)
OKLCH
oklch(0.962 0.043 156.7) · oklch(96.2% 0.043 156.7)
OKLab
oklab(0.962 -0.040 0.017)
Lab (D50)
lab(96.23 -13.65 6.43)
LCH (D50)
lch(96.23 15.09 154.77)
Display P3
color(display-p3 0.8868 0.9844 0.9115)
Linear sRGB
color(srgb-linear 0.7157 0.9734 0.7991)

Gamut: sRGB and Display P3

#DCFCE7 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.058 and Display P3 reaches 0.064; this color uses 75% of the sRGB chroma available.

CSS snippets

.element {
  color: #dcfce7;
  color: rgb(220 252 231);
  color: hsl(141 84% 93%);
  color: oklch(0.962 0.043 156.7);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.962 0.043 156.7);
}
/* arbitrary values */
class="text-[#dcfce7] bg-[oklch(0.962_0.043_156.7)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.8868 0.9844 0.9115); }
}

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

  • #E8FFF3 · oklch(1.000 0.043 156.7) · ΔL +0.06
  • #C8E8D3 · oklch(0.902 0.043 156.7) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?