HSL to HEX: #F9A8D4
Also known as: Tailwind v3 pink-300
Result
hsl(327.41 87.10% 81.76%) → #F9A8D4
Values are shown at full precision, so converting back gives exactly #f9a8d4. 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 = 327.41°, S = 87.10%, L = 81.76%
2. C
C = (1 − |2L − 1|) × S = 0.31774
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.17259 (H / 60° = 5.4568, sector 5)
4. m
m = L − C / 2 = 0.65873
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.31774, 0.00000, 0.17259) R = round((0.31774 + 0.65873) × 255) = 249 G = round((0.00000 + 0.65873) × 255) = 168 B = round((0.17259 + 0.65873) × 255) = 212
6. RGB → HEX
#F9A8D4
All formats
- HEX
- #f9a8d4
- RGB
- rgb(249 168 212)
- RGB (legacy)
- rgb(249, 168, 212)
- HSL
- hsl(327.41 87.10% 81.76%) → hsl(327 87% 82%)
- HWB
- hwb(327 66% 2%)
- OKLCH
- oklch(0.823 0.110 346.0) · oklch(82.3% 0.110 346.0)
- OKLab
- oklab(0.823 0.106 -0.026)
- Lab (D50)
- lab(77.96 35.23 -9.63)
- LCH (D50)
- lch(77.96 36.52 344.72)
- Display P3
- color(display-p3 0.9303 0.6726 0.8233)
- Linear sRGB
- color(srgb-linear 0.9473 0.3916 0.6584)
Gamut: sRGB and Display P3
#F9A8D4 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.124 and Display P3 reaches 0.164; this color uses 88% of the sRGB chroma available.
CSS snippets
.element {
color: #f9a8d4;
color: rgb(249 168 212);
color: hsl(327 87% 82%);
color: oklch(0.823 0.110 346.0);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.823 0.110 346.0);
}
/* arbitrary values */
class="text-[#f9a8d4] bg-[oklch(0.823_0.110_346.0)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.9303 0.6726 0.8233); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #f9a8d4 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- pink-300#FDA5D5
- v3 rose-300#FDA4AF
- lightpink#FFB6C1
- rose-300#FFA1AD
- plum#DDA0DD
- v3 fuchsia-300#F0ABFC
- fuchsia-300#F4A8FF
- v3 red-300#FCA5A5
Lighter and darker, same hue and chroma
- #FFBBE8 · oklch(0.883 0.110 346.0) · ΔL +0.06
- #E595C1 · oklch(0.763 0.110 346.0) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?