RGB to HEX: #4B5563
Also known as: Tailwind v3 gray-600
Result
rgb(75 85 99) → #4B5563
Values are shown at full precision, so converting back gives exactly #4b5563. 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. base 10 → base 16
R = 75 = 4×16 + 11 → 4B G = 85 = 5×16 + 5 → 55 B = 99 = 6×16 + 3 → 63
2. pairs → HEX
4B 55 63 → #4B5563
All formats
- HEX
- #4b5563
- RGB
- rgb(75 85 99)
- RGB (legacy)
- rgb(75, 85, 99)
- HSL
- hsl(215.00 13.79% 34.12%) → hsl(215 14% 34%)
- HWB
- hwb(215 29% 61%)
- OKLCH
- oklch(0.446 0.026 256.8) · oklch(44.6% 0.026 256.8)
- OKLab
- oklab(0.446 -0.006 -0.026)
- Lab (D50)
- lab(35.66 -1.46 -9.54)
- LCH (D50)
- lch(35.66 9.65 261.29)
- Display P3
- color(display-p3 0.3015 0.3321 0.3832)
- Linear sRGB
- color(srgb-linear 0.0704 0.0908 0.1248)
Gamut: sRGB and Display P3
#4B5563 is a hex color, so it sits inside sRGB and therefore inside Display P3. At this lightness and hue, sRGB reaches chroma 0.157 and Display P3 reaches 0.200; this color uses 17% of the sRGB chroma available.
CSS snippets
.element {
color: #4b5563;
color: rgb(75 85 99);
color: hsl(215 14% 34%);
color: oklch(0.446 0.026 256.8);
}
/* Tailwind CSS v4 */
@theme {
--color-brand: oklch(0.446 0.026 256.8);
}
/* arbitrary values */
class="text-[#4b5563] bg-[oklch(0.446_0.026_256.8)]"
/* wide-gamut screens */
@media (color-gamut: p3) {
.element { color: color(display-p3 0.3015 0.3321 0.3832); }
}
/* relative color syntax: 10% darker */
.element-dark { color: oklch(from #4b5563 calc(l - 0.1) c h); }Nearby colors
Closest colors in the Tailwind and CSS named palettes (OKLab distance).
- gray-600#4A5565
- v3 slate-600#475569
- zinc-600#52525C
- v3 zinc-600#52525B
- slate-600#45556C
- mist-600#4B585B
- neutral-600#525252
- mauve-600#594C5B
Lighter and darker, same hue and chroma
- #5C6674 · oklch(0.506 0.026 256.8) · ΔL +0.06
- #3B4552 · oklch(0.386 0.026 256.8) · ΔL −0.06
Open in the studio
Other converters for this color
Guides: What is OKLCH?