HEX to OKLCH: #F7FEE7

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

Result

#F7FEE7 → oklch(0.986 0.031 120.8)

Values are shown at full precision, so converting back gives exactly #f7fee7. 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: 247/255 = 0.96863 → 0.930111  (((x + 0.055) / 1.055)^2.4)
    G: 254/255 = 0.99608 → 0.991102  (((x + 0.055) / 1.055)^2.4)
    B: 231/255 = 0.90588 → 0.799103  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.956083
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.957558
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.864761
  3. 3. cube root

    l′ = ∛0.956083 = 0.985141
    m′ = ∛0.957558 = 0.985648
    s′ = ∛0.864761 = 0.952720
  4. 4. LMS′ → Oklab

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

    C = √(a² + b²) = 0.03097
    H = atan2(b, a) = 120.757°
    L = 0.98568
  6. 6. OKLCH

    oklch(0.98568 0.03097 120.757)
    rounded: oklch(0.986 0.031 120.8)

All formats

HEX
#f7fee7
RGB
rgb(247 254 231)
RGB (legacy)
rgb(247, 254, 231)
HSL
hsl(78.26 92.00% 95.10%) → hsl(78 92% 95%)
HWB
hwb(78 91% 0%)
OKLCH
oklch(0.986 0.031 120.8) · oklch(98.6% 0.031 120.8)
OKLab
oklab(0.986 -0.016 0.027)
Lab (D50)
lab(98.67 -5.32 10.21)
LCH (D50)
lch(98.67 11.51 117.54)
Display P3
color(display-p3 0.9736 0.9952 0.9139)
Linear sRGB
color(srgb-linear 0.9301 0.9911 0.7991)

Gamut: sRGB and Display P3

#F7FEE7 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.040 and Display P3 reaches 0.042; this color uses 78% of the sRGB chroma available.

CSS snippets

.element {
  color: #f7fee7;
  color: rgb(247 254 231);
  color: hsl(78 92% 95%);
  color: oklch(0.986 0.031 120.8);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.986 0.031 120.8);
}
/* arbitrary values */
class="text-[#f7fee7] bg-[oklch(0.986_0.031_120.8)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.9736 0.9952 0.9139); }
}

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

  • #FCFFEC · oklch(1.000 0.031 120.8) · ΔL +0.06
  • #E3EAD3 · oklch(0.926 0.031 120.8) · ΔL −0.06

Open in the studio

Other converters for this color

All converters →

Guides: What is OKLCH?