HEX in OKLCH: #ECFCCA

Auch bekannt als: Tailwind lime-100

Ergebnis

#ECFCCA → oklch(0.967 0.067 122.1)

Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #ecfcca. Die gerundete Form fügst du üblicherweise in CSS ein.

Rechenweg Schritt für Schritt

Jede Zahl wird aus der Eingabe berechnet, nichts ist nachgeschlagen.

  1. 1. sRGB → linear

    R: 236/255 = 0.92549 → 0.838799  (((x + 0.055) / 1.055)^2.4)
    G: 252/255 = 0.98824 → 0.973445  (((x + 0.055) / 1.055)^2.4)
    B: 202/255 = 0.79216 → 0.590619  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.898246
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.903799
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.720383
  3. 3. cube root

    l′ = ∛0.898246 = 0.964862
    m′ = ∛0.903799 = 0.966846
    s′ = ∛0.720383 = 0.896440
  4. 4. LMS′ → Oklab

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

    C = √(a² + b²) = 0.06713
    H = atan2(b, a) = 122.075°
    L = 0.96672
  6. 6. OKLCH

    oklch(0.96672 0.06713 122.075)
    rounded: oklch(0.967 0.067 122.1)

Alle Formate

HEX
#ecfcca
RGB
rgb(236 252 202)
RGB (legacy)
rgb(236, 252, 202)
HSL
hsl(79.20 89.29% 89.02%) → hsl(79 89% 89%)
HWB
hwb(79 79% 1%)
OKLCH
oklch(0.967 0.067 122.1) · oklch(96.7% 0.067 122.1)
OKLab
oklab(0.967 -0.036 0.057)
Lab (D50)
lab(96.83 -11.64 22.20)
LCH (D50)
lch(96.83 25.06 117.68)
Display P3
color(display-p3 0.9370 0.9862 0.8110)
Linear sRGB
color(srgb-linear 0.8388 0.9734 0.5906)

Gamut: sRGB und Display P3

#ECFCCA ist eine Hex-Farbe und liegt damit in sRGB und folglich in Display P3. Bei dieser Helligkeit und diesem Farbton erreicht sRGB eine Chroma von 0.095, Display P3 von 0.102; diese Farbe nutzt 71 % der verfügbaren sRGB-Chroma.

CSS-Snippets

.element {
  color: #ecfcca;
  color: rgb(236 252 202);
  color: hsl(79 89% 89%);
  color: oklch(0.967 0.067 122.1);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.967 0.067 122.1);
}
/* arbitrary values */
class="text-[#ecfcca] bg-[oklch(0.967_0.067_122.1)]"

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

/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #ecfcca calc(l - 0.1) c h); }

Ähnliche Farben

Nächste Farben in den Paletten von Tailwind und CSS (OKLab-Abstand).

Heller und dunkler, gleicher Farbton und gleiche Chroma

  • #F7FFD5 · oklch(1.000 0.067 122.1) · ΔL +0.06
  • #D8E8B7 · oklch(0.907 0.067 122.1) · ΔL −0.06

Im Studio öffnen

Weitere Umrechner für diese Farbe

Alle Umrechner →