Skip to content

#ba40ce

a balanced, vivid magenta / pink · warm · closest name: orchid

RGB
186, 64, 206
HSL
292°, 59%, 53%
CMYK
10, 69, 0, 19
Luminance
0.1856

Every format

HEX#ba40ce
RGBrgb(186, 64, 206)
HSLhsl(292, 59%, 53%)
CMYKcmyk(10%, 69%, 0%, 19%)
LABlab(50.2 67.0 -50.1)
LCHlch(50.2 83.6 323.2)
OKLCHoklch(0.600 0.226 321.7)

Copy-ready code

/* CSS */
color: #ba40ce;
background-color: #ba40ce;
/* Tailwind (arbitrary) */
class="text-[#ba40ce] bg-[#ba40ce]"
/* SCSS */
$brand: #ba40ce;
/* SwiftUI */
Color(red: 0.729, green: 0.251, blue: 0.808)
/* Android */
Color.parseColor("#ba40ce")

Accessibility — WCAG contrast

Aa
#ba40ce on white: 4.46:1
AA ✗ fail · AA-large · AAA
Aa
#ba40ce on black: 4.71:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green25.1%
Blue80.8%

CMYK percentages

Cyan9.7%
Magenta68.9%
Yellow0.0%
Key (black)19.2%

Color previews

#ba40ce text on a black background

contrast 4.71:1

Card sample

#ba40ce text on a white background

contrast 4.46:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

color: #ba40ce;
Background color
Panel with #ba40ce background
background-color: #ba40ce;
Text shadow — hex

Glowing headline

text-shadow: 2px 2px 8px #ba40ce;
Text shadow — RGB

Soft neon halo

text-shadow: 0 0 14px rgba(186, 64, 206, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(186, 64, 206, 0.45);
Border & gradient
Gradient panel
border: 3px solid #ba40ce;
background: linear-gradient(135deg, #ba40ce, #CE4083);

Monochromatic scale

Palettes built from #ba40ce

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba40ce in the Color Lab