Color #512458
A moderately saturated dark magenta.
Conversions
#512458
rgb(81, 36, 88)
hsl(291.9, 41.9%, 24.3%)
hsv(291.9, 59.1%, 34.5%)
cmyk(8%, 59.1%, 0%, 65.5%)
lab(22.71, 29.83, -22.41)
lch(22.71, 37.31, 323.08)
oklch(34.6%, 0.101, 322.08)
hwb(291.9, 14.1%, 65.5%)
Harmony colors
Accessibility
White text reads better on this background (12.05:1). That passes WCAG AAA (≥7:1) for normal-size text.
Under color vision deficiencies
Protanopia
#42424f · ΔE 17.6
Deuteranopia
#44474d · ΔE 20.6
Tritanopia
#4f4745 · ΔE 22.3
Achromatopsia
#363636 · ΔE 22.5
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #512458;
bg-[#512458]
Related colors
Frequently asked questions
#512458 (#512458) is rgb(81, 36, 88) in RGB.
No, #512458 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 #512458, or check how it holds up for accessibility.