HEX to HSL: #D9F99D
Also known as: Tailwind v3 lime-200
Result
#D9F99D → hsl(81 88% 80%)
Values are shown at full precision, so converting back gives exactly #d9f99d. 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.8510 G = 0.9765 B = 0.6157
2. max, min, Δ
max = 0.9765 min = 0.6157 Δ = max − min = 0.3608
3. L
L = (max + min) / 2 = 0.7961 = 79.61%
4. S
S = Δ / (1 − |2L − 1|) = 0.8846 = 88.46%
5. H
max is G → H = 60° × ((B − R) / Δ + 2) = 60° × ((0.6157 − 0.8510) / 0.3608 + 2) = 80.87°
6. HSL
hsl(80.87 88.46% 79.61%)
All formats
- HEX
- #d9f99d
- RGB
- rgb(217 249 157)
- RGB (legacy)
- rgb(217, 249, 157)
- HSL
- hsl(80.87 88.46% 79.61%) → hsl(81 88% 80%)
- HWB
- hwb(81 62% 2%)
- OKLCH
- oklch(0.938 0.122 124.3) · oklch(93.8% 0.122 124.3)
- OKLab
- oklab(0.938 -0.069 0.100)
- Lab (D50)
- lab(94.05 -21.67 40.57)
- LCH (D50)
- lch(94.05 45.99 118.11)
- Display P3
- color(display-p3 0.8750 0.9726 0.6557)
- Linear sRGB
- color(srgb-linear 0.6939 0.9473 0.3372)
Gamut: sRGB and Display P3
#D9F99D is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.185 and Display P3 reaches 0.202; this color uses 66% of the sRGB chroma available.
CSS snippets
.element {
color: #d9f99d;
color: rgb(217 249 157);
color: hsl(81 88% 80%);
color: oklch(0.938 0.122 124.3);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.938 0.122 124.3);
}
/* arbitrary values */
class="text-[#d9f99d] bg-[oklch(0.938_0.122_124.3)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.8750 0.9726 0.6557); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #d9f99d calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- lime-200#D8F999
- v3 yellow-200#FEF08A
- yellow-200#FFF085
- khaki#F0E68C
- palegoldenrod#EEE8AA
- v3 amber-200#FDE68A
- amber-200#FEE685
- lime-100#ECFCCA
Lighter and darker, same hue and chroma
- #EDFFB0 · oklch(0.998 0.122 124.3) · ΔL +0.06
- #C6E58A · oklch(0.878 0.122 124.3) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?