Color #ba5fa2
A muted medium magenta.
Conversions
#ba5fa2
rgb(186, 95, 162)
hsl(315.8, 39.7%, 55.1%)
hsv(315.8, 48.9%, 72.9%)
cmyk(0%, 48.9%, 12.9%, 27.1%)
lab(53.2, 45.37, -19.8)
lch(53.2, 49.5, 336.42)
oklch(61.5%, 0.1429, 338.14)
hwb(315.8, 37.3%, 27.1%)
Harmony colors
Accessibility
Black text reads better on this background (5.25:1). That passes WCAG AA (≥4.5:1) for normal-size text, but not AAA.
Under color vision deficiencies
Protanopia
#9b9a95 · ΔE 29.7
Deuteranopia
#a0a592 · ΔE 40.2
Tritanopia
#b78a87 · ΔE 21.1
Achromatopsia
#7f7f7f · ΔE 24.8
Left half is the original, right half is the simulated appearance. See all 8 vision types →
Code
background-color: #ba5fa2;
bg-[#ba5fa2]
Related colors
Frequently asked questions
#ba5fa2 (#ba5fa2) is rgb(186, 95, 162) in RGB.
No, #ba5fa2 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 #ba5fa2, or check how it holds up for accessibility.