Skip to content
Kolorvia
#ba40cd

Color #ba40cd

A moderately saturated medium magenta.

Conversions

HEX
#ba40cd
RGB
rgb(186, 64, 205)
HSL
hsl(291.9, 58.5%, 52.7%)
HSV / HSB
hsv(291.9, 68.8%, 80.4%)
CMYK
cmyk(9.3%, 68.8%, 0%, 19.6%)
LAB
lab(50.12, 66.8, -49.59)
LCH
lch(50.12, 83.2, 323.41)
OKLCH
oklch(59.9%, 0.2248, 321.99)
HWB
hwb(291.9, 25.1%, 19.6%)

Harmony colors

Complementary

#53cd40

Analogous

#7340cd
#ba40cd
#cd4099

Triadic

#ba40cd
#cdba40
#40cdba

Split-complementary

#ba40cd
#99cd40
#40cd73

Tetradic

#ba40cd
#cd4053
#53cd40
#40cdba

Square

#ba40cd
#cd7340
#53cd40
#4099cd

Shades

Color #ba40cd mixed toward black.

#a02eb2
#80258e
#601c6b
#401347
#200924

Tints

Color #ba40cd mixed toward white.

#c560d5
#d180de
#dc9fe6
#e8bfee
#f3dff7

Tones

Color #ba40cd mixed toward gray.

#b14cc1
#a957b5
#a063aa
#986f9e
#8f7b92

Accessibility

Aa White text on this color
4.47:1
Aa Black text on this color
4.7:1

Black text reads better on this background (4.7:1). That passes WCAG AA (≥4.5:1) for normal-size text, but not AAA.

Under color vision deficiencies

Protanopia

#9594b7 · ΔE 24.6

Deuteranopia

#9ba2b2 · ΔE 27.8

Tritanopia

#b6a39f · ΔE 33.7

Achromatopsia

#777777 · ΔE 29

Left half is the original, right half is the simulated appearance. See all 8 vision types →

Code

CSS
background-color: #ba40cd;
Tailwind (arbitrary value)
bg-[#ba40cd]

Related colors

Medium Orchid #ba55d3
Dark Magenta #8b008b
Fuchsia #ff00ff
Plum #dda0dd
Purple #800080
Thistle #d8bfd8

Frequently asked questions

#ba40cd (#ba40cd) is rgb(186, 64, 205) in RGB.

No, #ba40cd is not one of the 216 web-safe colors — for that, every RGB channel would have to be a multiple of 51.

Related tools

Build something with this color

Generate a full palette from #ba40cd, or check how it holds up for accessibility.

We use cookies for site preferences and, where enabled, Google Analytics and Google AdSense — which may use cookies to personalize ads based on your visits here and elsewhere. See our Privacy Policy for details. Your color tool inputs are never sent to us regardless of your choice.