Skip to content

#ba0ff4

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

RGB
186, 15, 244
HSL
285°, 91%, 51%
CMYK
24, 94, 0, 4
Luminance
0.1731

Every format

HEX#ba0ff4
RGBrgb(186, 15, 244)
HSLhsl(285, 91%, 51%)
CMYKcmyk(24%, 94%, 0%, 4%)
LABlab(48.6 85.6 -74.1)
LCHlch(48.6 113.2 319.1)
OKLCHoklch(0.597 0.291 313.7)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red72.9%
Green5.9%
Blue95.7%

CMYK percentages

Cyan23.8%
Magenta93.9%
Yellow0.0%
Key (black)4.3%

Color previews

#ba0ff4 text on a black background

contrast 4.46:1

Card sample

#ba0ff4 text on a white background

contrast 4.71:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba0ff4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba0ff4 in the Color Lab