HEX to HSL: #D8F999
Also known as: Tailwind lime-200
Result
#D8F999 → hsl(81 89% 79%)
Values are shown at full precision, so converting back gives exactly #d8f999. 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. RGB ÷ 255
R = 0.8471 G = 0.9765 B = 0.6000
2. max, min, Δ
max = 0.9765 min = 0.6000 Δ = max − min = 0.3765
3. L
L = (max + min) / 2 = 0.7882 = 78.82%
4. S
S = Δ / (1 − |2L − 1|) = 0.8889 = 88.89%
5. H
max is G → H = 60° × ((B − R) / Δ + 2) = 60° × ((0.6000 − 0.8471) / 0.3765 + 2) = 80.63°
6. HSL
hsl(80.63 88.89% 78.82%)
All formats
- 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 and Display P3
#D8F999 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.191 and Display P3 reaches 0.208; this color uses 66% of the sRGB chroma available.
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); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- 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
Lighter and darker, same hue and chroma
- #ECFFAD · oklch(0.997 0.126 124.3) · ΔL +0.06
- #C5E586 · oklch(0.877 0.126 124.3) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?