Color #5a212c
A moderately saturated dark red.
Conversions
#5a212c
rgb(90, 33, 44)
hsl(348.4, 46.3%, 24.1%)
hsv(348.4, 63.3%, 35.3%)
cmyk(0%, 63.3%, 51.1%, 64.7%)
lab(21.74, 27.33, 6.23)
lch(21.74, 28.03, 12.84)
oklch(33.6%, 0.0844, 11)
hwb(348.4, 12.9%, 64.7%)
Harmony colors
Accessibility
White text reads better on this background (12.44:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#48472a · ΔE 31.3
Deuteranopia
#4b4e29 · ΔE 34.5
Tritanopia
#582827 · ΔE 4.9
Achromatopsia
#343434 · ΔE 21
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #5a212c;
bg-[#5a212c]
Related colors
Frequently asked questions
#5a212c (#5a212c) is rgb(90, 33, 44) in RGB.
No, #5a212c 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 #5a212c, or check how it holds up for accessibility.