Color #ba2ad4
A moderately saturated medium magenta.
Conversions
#ba2ad4
rgb(186, 42, 212)
hsl(290.8, 66.9%, 49.8%)
hsv(290.8, 80.2%, 83.1%)
cmyk(12.3%, 80.2%, 0%, 16.9%)
lab(48.07, 75.11, -56.88)
lch(48.07, 94.22, 322.86)
oklch(58.6%, 0.2524, 320.77)
hwb(290.8, 16.5%, 16.9%)
Harmony colors
Accessibility
White text reads better on this background (4.81:1). That passes WCAG AA (≥4.5:1) for normal-size text, but not AAA.
Under color vision deficiencies
Protanopia
#9291bc · ΔE 25.7
Deuteranopia
#98a0b6 · ΔE 29.7
Tritanopia
#b6a6a1 · ΔE 36.8
Achromatopsia
#727272 · ΔE 30.2
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #ba2ad4;
bg-[#ba2ad4]
Related colors
Frequently asked questions
#ba2ad4 (#ba2ad4) is rgb(186, 42, 212) in RGB.
No, #ba2ad4 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 #ba2ad4, or check how it holds up for accessibility.