Skip to content

#ba2cff

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

RGB
186, 44, 255
HSL
280°, 100%, 59%
CMYK
27, 83, 0, 0
Luminance
0.1946

Every format

HEX#ba2cff
RGBrgb(186, 44, 255)
HSLhsl(280, 100%, 59%)
CMYKcmyk(27%, 83%, 0%, 0%)
LABlab(51.2 82.4 -76.1)
LCHlch(51.2 112.2 317.3)
OKLCHoklch(0.617 0.285 310.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba2cff on white: 4.29:1
AA ✗ fail · AA-large · AAA
Aa
#ba2cff on black: 4.89:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green17.3%
Blue100.0%

CMYK percentages

Cyan27.1%
Magenta82.7%
Yellow0.0%
Key (black)0.0%

Color previews

#ba2cff text on a black background

contrast 4.89:1

Card sample

#ba2cff text on a white background

contrast 4.29:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2cff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba2cff in the Color Lab