HSL to HEX: #F0FDF4
Also known as: Tailwind green-50, Tailwind v3 green-50
Result
hsl(138.46 76.47% 96.67%) → #F0FDF4
Values are shown at full precision, so converting back gives exactly #f0fdf4. 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. input
H = 138.46°, S = 76.47%, L = 96.67%
2. C
C = (1 − |2L − 1|) × S = 0.05093
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.01567 (H / 60° = 2.3077, sector 2)
4. m
m = L − C / 2 = 0.94124
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.00000, 0.05093, 0.01567) R = round((0.00000 + 0.94124) × 255) = 240 G = round((0.05093 + 0.94124) × 255) = 253 B = round((0.01567 + 0.94124) × 255) = 244
6. RGB → HEX
#F0FDF4
All formats
- HEX
- #f0fdf4
- RGB
- rgb(240 253 244)
- RGB (legacy)
- rgb(240, 253, 244)
- HSL
- hsl(138.46 76.47% 96.67%) → hsl(138 76% 97%)
- HWB
- hwb(138 94% 1%)
- OKLCH
- oklch(0.982 0.018 155.8) · oklch(98.2% 0.018 155.8)
- OKLab
- oklab(0.982 -0.016 0.007)
- Lab (D50)
- lab(98.15 -5.62 2.77)
- LCH (D50)
- lch(98.15 6.26 153.78)
- Display P3
- color(display-p3 0.9505 0.9905 0.9592)
- Linear sRGB
- color(srgb-linear 0.8714 0.9823 0.9047)
Gamut: sRGB and Display P3
#F0FDF4 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.027 and Display P3 reaches 0.030; this color uses 67% of the sRGB chroma available.
CSS snippets
.element {
color: #f0fdf4;
color: rgb(240 253 244);
color: hsl(138 76% 97%);
color: oklch(0.982 0.018 155.8);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.982 0.018 155.8);
}
/* arbitrary values */
class="text-[#f0fdf4] bg-[oklch(0.982_0.018_155.8)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9505 0.9905 0.9592); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #f0fdf4 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- emerald-50#ECFDF5
- teal-50#F0FDFA
- honeydew#F0FFF0
- mintcream#F5FFFA
- azure#F0FFFF
- cyan-50#ECFEFF
- mist-50#F9FBFB
- olive-50#FBFBF9
Lighter and darker, same hue and chroma
- #F6FFFA · oklch(1.000 0.018 155.8) · ΔL +0.06
- #DCE9E0 · oklch(0.922 0.018 155.8) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?