Color #512f79
A moderately saturated dark purple.
Conversions
#512f79
rgb(81, 47, 121)
hsl(267.6, 44%, 32.9%)
hsv(267.6, 61.2%, 47.5%)
cmyk(33.1%, 61.2%, 0%, 52.5%)
lab(27.19, 31.66, -36.64)
lch(27.19, 48.42, 310.83)
oklch(38.6%, 0.1225, 302.16)
hwb(267.6, 18.4%, 52.5%)
Harmony colors
Accessibility
White text reads better on this background (10.33:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#45446d · ΔE 9.9
Deuteranopia
#464969 · ΔE 12.4
Tritanopia
#50615f · ΔE 25.6
Achromatopsia
#404040 · ΔE 24
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #512f79;
bg-[#512f79]
Related colors
Frequently asked questions
#512f79 (#512f79) is rgb(81, 47, 121) in RGB.
No, #512f79 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 #512f79, or check how it holds up for accessibility.