Skip to content

#ba2ffd

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

RGB
186, 47, 253
HSL
281°, 98%, 59%
CMYK
27, 81, 0, 1
Luminance
0.1956

Every format

HEX#ba2ffd
RGBrgb(186, 47, 253)
HSLhsl(281, 98%, 59%)
CMYKcmyk(27%, 81%, 0%, 1%)
LABlab(51.3 81.3 -74.8)
LCHlch(51.3 110.4 317.4)
OKLCHoklch(0.618 0.281 311.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2ffd on white: 4.27:1
AA ✗ fail · AA-large · AAA
Aa
#ba2ffd on black: 4.91:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green18.4%
Blue99.2%

CMYK percentages

Cyan26.5%
Magenta81.4%
Yellow0.0%
Key (black)0.8%

Color previews

#ba2ffd text on a black background

contrast 4.91:1

Card sample

#ba2ffd text on a white background

contrast 4.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2ffd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba2ffd in the Color Lab