HEX to HSL: #F6339A
Also known as: Tailwind pink-500
Result
#F6339A → hsl(328 92% 58%)
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. RGB ÷ 255
R = 0.9647 G = 0.2000 B = 0.6039
2. max, min, Δ
max = 0.9647 min = 0.2000 Δ = max − min = 0.7647
3. L
L = (max + min) / 2 = 0.5824 = 58.24%
4. S
S = Δ / (1 − |2L − 1|) = 0.9155 = 91.55%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.2000 − 0.6039) / 0.7647) mod 6) = 328.31°
6. HSL
hsl(328.31 91.55% 58.24%)
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?