Skip to content

#ba4ff4

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

RGB
186, 79, 244
HSL
279°, 88%, 63%
CMYK
24, 68, 0, 4
Luminance
0.2256

Every format

HEX#ba4ff4
RGBrgb(186, 79, 244)
HSLhsl(279, 88%, 63%)
CMYKcmyk(24%, 68%, 0%, 4%)
LABlab(54.6 68.3 -64.4)
LCHlch(54.6 93.9 316.7)
OKLCHoklch(0.639 0.242 311.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba4ff4 on white: 3.81:1
AA ✗ fail · AA-large · AAA
Aa
#ba4ff4 on black: 5.51:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green31.0%
Blue95.7%

CMYK percentages

Cyan23.8%
Magenta67.6%
Yellow0.0%
Key (black)4.3%

Color previews

#ba4ff4 text on a black background

contrast 5.51:1

Card sample

#ba4ff4 text on a white background

contrast 3.81:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba4ff4

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba4ff4 in the Color Lab