HSL in HEX: #D8F999
Auch bekannt als: Tailwind lime-200
Ergebnis
hsl(80.63 88.89% 78.82%) → #D8F999
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. input
H = 80.63°, S = 88.89%, L = 78.82%
2. C
C = (1 − |2L − 1|) × S = 0.37654
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.24707 (H / 60° = 1.3438, sector 1)
4. m
m = L − C / 2 = 0.59993
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.24707, 0.37654, 0.00000) R = round((0.24707 + 0.59993) × 255) = 216 G = round((0.37654 + 0.59993) × 255) = 249 B = round((0.00000 + 0.59993) × 255) = 153
6. RGB → HEX
#D8F999
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).
- v3 lime-200#D9F99D
- v3 yellow-200#FEF08A
- yellow-200#FFF085
- khaki#F0E68C
- palegoldenrod#EEE8AA
- v3 amber-200#FDE68A
- amber-200#FEE685
- v3 lime-300#BEF264
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