HEX in OKLCH: #D8F999

Auch bekannt als: Tailwind lime-200

Ergebnis

#D8F999 → oklch(0.937 0.126 124.3)

Die Werte stehen in voller Genauigkeit, die Rückrechnung ergibt exakt #d8f999. 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: 216/255 = 0.84706 → 0.686685  (((x + 0.055) / 1.055)^2.4)
    G: 249/255 = 0.97647 → 0.947307  (((x + 0.055) / 1.055)^2.4)
    B: 153/255 = 0.60000 → 0.318547  (((x + 0.055) / 1.055)^2.4)
  2. 2. linear sRGB → LMS

    l = 0.4122·R + 0.5363·G + 0.0514·B = 0.807526
    m = 0.2119·R + 0.6807·G + 0.1074·B = 0.824553
    s = 0.0883·R + 0.2817·G + 0.6300·B = 0.528188
  3. 3. cube root

    l′ = ∛0.807526 = 0.931220
    m′ = ∛0.824553 = 0.937719
    s′ = ∛0.528188 = 0.808344
  4. 4. LMS′ → Oklab

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

    C = √(a² + b²) = 0.12639
    H = atan2(b, a) = 124.262°
    L = 0.93688
  6. 6. OKLCH

    oklch(0.93688 0.12639 124.262)
    rounded: oklch(0.937 0.126 124.3)

Alle Formate

HEX
#d8f999
RGB
rgb(216 249 153)
RGB (legacy)
rgb(216, 249, 153)
HSL
hsl(80.63 88.89% 78.82%) → hsl(81 89% 79%)
HWB
hwb(81 60% 2%)
OKLCH
oklch(0.937 0.126 124.3) · oklch(93.7% 0.126 124.3)
OKLab
oklab(0.937 -0.071 0.104)
Lab (D50)
lab(93.94 -22.39 42.34)
LCH (D50)
lch(93.94 47.89 117.87)
Display P3
color(display-p3 0.8719 0.9725 0.6424)
Linear sRGB
color(srgb-linear 0.6867 0.9473 0.3185)

Gamut: sRGB und Display P3

#D8F999 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.191, Display P3 von 0.208; diese Farbe nutzt 66 % der verfügbaren sRGB-Chroma.

CSS-Snippets

.element {
  color: #d8f999;
  color: rgb(216 249 153);
  color: hsl(81 89% 79%);
  color: oklch(0.937 0.126 124.3);
}

/* Tailwind CSS v4 */
@theme {
  --color-brand: oklch(0.937 0.126 124.3);
}
/* arbitrary values */
class="text-[#d8f999] bg-[oklch(0.937_0.126_124.3)]"

/* wide-gamut screens */
@media (color-gamut: p3) {
  .element { color: color(display-p3 0.8719 0.9725 0.6424); }
}

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

  • #ECFFAD · oklch(0.997 0.126 124.3) · ΔL +0.06
  • #C5E586 · oklch(0.877 0.126 124.3) · ΔL −0.06

Im Studio öffnen

Weitere Umrechner für diese Farbe

Alle Umrechner →