HSL to HEX: #510424
Also known as: Tailwind pink-950
Result
hsl(335.06 90.59% 16.67%) → #510424
Values are shown at full precision, so converting back gives exactly #510424. 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 = 335.06°, S = 90.59%, L = 16.67%
2. C
C = (1 − |2L − 1|) × S = 0.30203
3. X
X = C × (1 − |(H / 60°) mod 2 − 1|) = 0.12554 (H / 60° = 5.5843, sector 5)
4. m
m = L − C / 2 = 0.01569
5. (R′, G′, B′) + m
(R′, G′, B′) = (0.30203, 0.00000, 0.12554) R = round((0.30203 + 0.01569) × 255) = 81 G = round((0.00000 + 0.01569) × 255) = 4 B = round((0.12554 + 0.01569) × 255) = 36
6. RGB → HEX
#510424
All formats
- HEX
- #510424
- RGB
- rgb(81 4 36)
- RGB (legacy)
- rgb(81, 4, 36)
- HSL
- hsl(335.06 90.59% 16.67%) → hsl(335 91% 17%)
- HWB
- hwb(335 2% 68%)
- OKLCH
- oklch(0.284 0.109 3.6) · oklch(28.4% 0.109 3.6)
- OKLab
- oklab(0.284 0.109 0.007)
- Lab (D50)
- lab(15.62 35.16 3.29)
- LCH (D50)
- lch(15.62 35.32 5.34)
- Display P3
- color(display-p3 0.2890 0.0497 0.1408)
- Linear sRGB
- color(srgb-linear 0.0823 0.0012 0.0176)
Gamut: sRGB and Display P3
#510424 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.114 and Display P3 reaches 0.129; this color uses 95% of the sRGB chroma available.
CSS snippets
.element {
color: #510424;
color: rgb(81 4 36);
color: hsl(335 91% 17%);
color: oklch(0.284 0.109 3.6);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.284 0.109 3.6);
}
/* arbitrary values */
class="text-[#510424] bg-[oklch(0.284_0.109_3.6)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2890 0.0497 0.1408); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #510424 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- v3 pink-950#500724
- rose-950#4D0218
- v3 rose-950#4C0519
- red-950#460809
- v3 red-950#450A0A
- orange-950#441306
- v3 orange-950#431407
- amber-950#461901
Lighter and darker, same hue and chroma
- #631933 · oklch(0.344 0.109 3.6) · ΔL +0.06
- #3F0016 · oklch(0.224 0.109 3.6) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?