Color #5b5158
A nearly neutral, gray-leaning dark magenta.
Conversions
#5b5158
rgb(91, 81, 88)
hsl(318, 5.8%, 33.7%)
hsv(318, 11%, 35.7%)
cmyk(0%, 11%, 3.3%, 64.3%)
lab(35.62, 5.54, -2.58)
lch(35.62, 6.11, 335.03)
oklch(44.7%, 0.0171, 336.58)
hwb(318, 31.8%, 64.3%)
Harmony colors
Accessibility
White text reads better on this background (7.6:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#575756 · ΔE 8
Deuteranopia
#575856 · ΔE 9.2
Tritanopia
#5b5555 · ΔE 4.8
Achromatopsia
#545454 · ΔE 7.3
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #5b5158;
bg-[#5b5158]
Related colors
Frequently asked questions
#5b5158 (#5b5158) is rgb(91, 81, 88) in RGB.
No, #5b5158 is not one of the 216 web-safe colors — for that, every RGB channel would have to be a multiple of 51.
Related tools
HEX to RGB Converter
Convert any HEX color code to its RGB and HSL equivalents, live, with copy-to-clipboard values.
Try it → AccessibilityContrast Checker
Check the WCAG contrast ratio between any two colors, live, with AA/AAA pass-fail results.
Try it → GeneratorsPalette Generator
Generate complementary, analogous, triadic, split-complementary, tetradic, square, and monochromatic palettes from any base color.
Try it →Build something with this color
Generate a full palette from #5b5158, or check how it holds up for accessibility.