Color #512542
A muted dark magenta.
Conversions
#512542
rgb(81, 37, 66)
hsl(320.5, 37.3%, 23.1%)
hsv(320.5, 54.3%, 31.8%)
cmyk(0%, 54.3%, 18.5%, 68.2%)
lab(21.82, 24.8, -8.98)
lch(21.82, 26.38, 340.09)
oklch(33.6%, 0.0772, 341.96)
hwb(320.5, 14.5%, 68.2%)
Harmony colors
Accessibility
White text reads better on this background (12.4:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#42423c · ΔE 25.4
Deuteranopia
#44473b · ΔE 30.9
Tritanopia
#4f3836 · ΔE 13.9
Achromatopsia
#343434 · ΔE 20.2
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #512542;
bg-[#512542]
Related colors
Frequently asked questions
#512542 (#512542) is rgb(81, 37, 66) in RGB.
No, #512542 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 #512542, or check how it holds up for accessibility.