Color #ab51bb
A moderately saturated medium magenta.
Conversions
#ab51bb
rgb(171, 81, 187)
hsl(290.9, 43.8%, 52.5%)
hsv(290.9, 56.7%, 73.3%)
cmyk(8.6%, 56.7%, 0%, 26.7%)
lab(49.66, 52.47, -40.06)
lch(49.66, 66.01, 322.64)
oklch(58.8%, 0.1782, 321.38)
hwb(290.9, 31.8%, 26.7%)
Harmony colors
Accessibility
Black text reads better on this background (4.63:1). That passes WCAG AA (≥4.5:1) for normal-size text, but not AAA.
Under color vision deficiencies
Protanopia
#8d8ca9 · ΔE 21.4
Deuteranopia
#9297a4 · ΔE 24.6
Tritanopia
#a89995 · ΔE 30.5
Achromatopsia
#767676 · ΔE 26.8
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #ab51bb;
bg-[#ab51bb]
Related colors
Frequently asked questions
#ab51bb (#ab51bb) is rgb(171, 81, 187) in RGB.
No, #ab51bb 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 #ab51bb, or check how it holds up for accessibility.