Skip to content

#ba10df

a balanced, electric violet · warm · closest name: magenta

RGB
186, 16, 223
HSL
289°, 87%, 47%
CMYK
17, 93, 0, 13
Luminance
0.1614

Every format

HEX#ba10df
RGBrgb(186, 16, 223)
HSLhsl(289, 87%, 47%)
CMYKcmyk(17%, 93%, 0%, 13%)
LABlab(47.2 81.8 -64.7)
LCHlch(47.2 104.3 321.7)
OKLCHoklch(0.582 0.275 318.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba10df on white: 4.97:1
AA ✓ pass · AA-large · AAA
Aa
#ba10df on black: 4.23:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green6.3%
Blue87.5%

CMYK percentages

Cyan16.6%
Magenta92.8%
Yellow0.0%
Key (black)12.5%

Color previews

#ba10df text on a black background

contrast 4.23:1

Card sample

#ba10df text on a white background

contrast 4.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba10df

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba10df in the Color Lab