HSL to HEX: #F6339A
Also known as: Tailwind pink-500
Result
hsl(328.31 91.55% 58.24%) → #F6339A
Values are shown at full precision, so converting back gives exactly #f6339a. 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 = 328.31°, S = 91.55%, L = 58.24%
2. C
C = (1 − |2L − 1|) × S = 0.76463
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.40385 (H / 60° = 5.4718, sector 5)
4. m
m = L − C / 2 = 0.20009
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.76463, 0.00000, 0.40385) R = round((0.76463 + 0.20009) × 255) = 246 G = round((0.00000 + 0.20009) × 255) = 51 B = round((0.40385 + 0.20009) × 255) = 154
6. RGB → HEX
#F6339A
All formats
- HEX
- #f6339a
- RGB
- rgb(246 51 154)
- RGB (legacy)
- rgb(246, 51, 154)
- HSL
- hsl(328.31 91.55% 58.24%) → hsl(328 92% 58%)
- HWB
- hwb(328 20% 4%)
- OKLCH
- oklch(0.656 0.240 354.3) · oklch(65.6% 0.240 354.3)
- OKLab
- oklab(0.656 0.239 -0.024)
- Lab (D50)
- lab(56.92 76.63 -8.04)
- LCH (D50)
- lch(56.92 77.05 354.01)
- Display P3
- color(display-p3 0.8880 0.2775 0.5947)
- Linear sRGB
- color(srgb-linear 0.9216 0.0331 0.3231)
Gamut: sRGB and Display P3
#F6339A is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.267 and Display P3 reaches 0.303; this color uses 90% of the sRGB chroma available.
CSS snippets
.element {
color: #f6339a;
color: rgb(246 51 154);
color: hsl(328 92% 58%);
color: oklch(0.656 0.240 354.3);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.656 0.240 354.3);
}
/* arbitrary values */
class="text-[#f6339a] bg-[oklch(0.656_0.240_354.3)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.8880 0.2775 0.5947); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #f6339a calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- deeppink#FF1493
- v3 pink-500#EC4899
- pink-600#E60076
- v3 pink-600#DB2777
- pink-400#FB64B6
- hotpink#FF69B4
- v3 rose-500#F43F5E
- rose-500#FF2056
Lighter and darker, same hue and chroma
- #FF4CAD · oklch(0.716 0.240 354.3) · ΔL +0.06
- #E00E88 · oklch(0.596 0.240 354.3) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?