Color #511a76
A moderately saturated dark purple.
Conversions
#511a76
rgb(81, 26, 118)
hsl(275.9, 63.9%, 28.2%)
hsv(275.9, 78%, 46.3%)
cmyk(31.4%, 78%, 0%, 53.7%)
lab(22.99, 41.86, -41.52)
lch(22.99, 58.96, 315.23)
oklch(35.5%, 0.1488, 307.57)
hwb(275.9, 10.2%, 53.7%)
Harmony colors
Accessibility
White text reads better on this background (11.94:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#403f68 · ΔE 13.7
Deuteranopia
#424665 · ΔE 16.5
Tritanopia
#4f5c59 · ΔE 27.7
Achromatopsia
#373737 · ΔE 25.7
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #511a76;
bg-[#511a76]
Related colors
Frequently asked questions
#511a76 (#511a76) is rgb(81, 26, 118) in RGB.
No, #511a76 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 #511a76, or check how it holds up for accessibility.