HEX to RGB: #500724
Also known as: Tailwind v3 pink-950
Result
#500724 → rgb(80 7 36)
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. HEX → pairs
#500724 → 50 | 07 | 24
2. base 16 → base 10
R = 50₁₆ = 5×16 + 0 = 80 G = 07₁₆ = 0×16 + 7 = 7 B = 24₁₆ = 2×16 + 4 = 36
3. RGB
rgb(80 7 36)
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?