HSL to HEX: #F0ABFC
Also known as: Tailwind v3 fuchsia-300
Result
hsl(291.11 93.10% 82.94%) → #F0ABFC
Values are shown at full precision, so converting back gives exactly #f0abfc. 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 = 291.11°, S = 93.10%, L = 82.94%
2. C
C = (1 − |2L − 1|) × S = 0.31766
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.27059 (H / 60° = 4.8518, sector 4)
4. m
m = L − C / 2 = 0.67057
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.27059, 0.00000, 0.31766) R = round((0.27059 + 0.67057) × 255) = 240 G = round((0.00000 + 0.67057) × 255) = 171 B = round((0.31766 + 0.67057) × 255) = 252
6. RGB → HEX
#F0ABFC
All formats
- HEX
- #f0abfc
- RGB
- rgb(240 171 252)
- RGB (legacy)
- rgb(240, 171, 252)
- HSL
- hsl(291.11 93.10% 82.94%) → hsl(291 93% 83%)
- HWB
- hwb(291 67% 1%)
- OKLCH
- oklch(0.833 0.132 321.4) · oklch(83.3% 0.132 321.4)
- OKLab
- oklab(0.833 0.103 -0.082)
- Lab (D50)
- lab(78.74 35.82 -30.11)
- LCH (D50)
- lch(78.74 46.80 319.95)
- Display P3
- color(display-p3 0.9008 0.6819 0.9689)
- Linear sRGB
- color(srgb-linear 0.8714 0.4072 0.9734)
Gamut: sRGB and Display P3
#F0ABFC is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.140 and Display P3 reaches 0.155; this color uses 94% of the sRGB chroma available.
CSS snippets
.element {
color: #f0abfc;
color: rgb(240 171 252);
color: hsl(291 93% 83%);
color: oklch(0.833 0.132 321.4);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.833 0.132 321.4);
}
/* arbitrary values */
class="text-[#f0abfc] bg-[oklch(0.833_0.132_321.4)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9008 0.6819 0.9689); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #f0abfc calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- fuchsia-300#F4A8FF
- purple-300#DAB2FF
- v3 purple-300#D8B4FE
- pink-300#FDA5D5
- plum#DDA0DD
- v3 pink-300#F9A8D4
- violet-300#C4B4FF
- v3 violet-300#C4B5FD
Lighter and darker, same hue and chroma
- #FFBEFF · oklch(0.893 0.132 321.4) · ΔL +0.06
- #DC98E8 · oklch(0.773 0.132 321.4) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?