Skip to content

#ba2eff

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

RGB
186, 46, 255
HSL
280°, 100%, 59%
CMYK
27, 82, 0, 0
Luminance
0.1961

Every format

HEX#ba2eff
RGBrgb(186, 46, 255)
HSLhsl(280, 100%, 59%)
CMYKcmyk(27%, 82%, 0%, 0%)
LABlab(51.4 81.9 -75.8)
LCHlch(51.4 111.6 317.2)
OKLCHoklch(0.619 0.283 310.6)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red72.9%
Green18.0%
Blue100.0%

CMYK percentages

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

Color previews

#ba2eff text on a black background

contrast 4.92:1

Card sample

#ba2eff text on a white background

contrast 4.27:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba2eff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba2eff in the Color Lab