HEX to HSL: #500724
Also known as: Tailwind v3 pink-950
Result
#500724 → hsl(336 84% 17%)
Values are shown at full precision, so converting back gives exactly #500724. 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.3137 G = 0.0275 B = 0.1412
2. max, min, Δ
max = 0.3137 min = 0.0275 Δ = max − min = 0.2863
3. L
L = (max + min) / 2 = 0.1706 = 17.06%
4. S
S = Δ / (1 − |2L − 1|) = 0.8391 = 83.91%
5. H
max is R → H = 60° × (((G − B) / Δ) mod 6) = 60° × (((0.0275 − 0.1412) / 0.2863) mod 6) = 336.16°
6. HSL
hsl(336.16 83.91% 17.06%)
All formats
- HEX
- #500724
- RGB
- rgb(80 7 36)
- RGB (legacy)
- rgb(80, 7, 36)
- HSL
- hsl(336.16 83.91% 17.06%) → hsl(336 84% 17%)
- HWB
- hwb(336 3% 69%)
- OKLCH
- oklch(0.284 0.105 3.9) · oklch(28.4% 0.105 3.9)
- OKLab
- oklab(0.284 0.105 0.007)
- Lab (D50)
- lab(15.72 33.92 3.39)
- LCH (D50)
- lch(15.72 34.09 5.70)
- Display P3
- color(display-p3 0.2857 0.0582 0.1409)
- Linear sRGB
- color(srgb-linear 0.0802 0.0021 0.0176)
Gamut: sRGB and Display P3
#500724 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 92% of the sRGB chroma available.
CSS snippets
.element {
color: #500724;
color: rgb(80 7 36);
color: hsl(336 84% 17%);
color: oklch(0.284 0.105 3.9);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.284 0.105 3.9);
}
/* arbitrary values */
class="text-[#500724] bg-[oklch(0.284_0.105_3.9)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.2857 0.0582 0.1409); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #500724 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- pink-950#510424
- v3 rose-950#4C0519
- rose-950#4D0218
- red-950#460809
- v3 red-950#450A0A
- orange-950#441306
- v3 orange-950#431407
- amber-950#461901
Lighter and darker, same hue and chroma
- #621B33 · oklch(0.344 0.105 3.9) · ΔL +0.06
- #3E0016 · oklch(0.224 0.105 3.9) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?