Skip to content

#ba4dfd

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

RGB
186, 77, 253
HSL
277°, 98%, 65%
CMYK
27, 70, 0, 1
Luminance
0.2284

Every format

HEX#ba4dfd
RGBrgb(186, 77, 253)
HSLhsl(277, 98%, 65%)
CMYKcmyk(27%, 70%, 0%, 1%)
LABlab(54.9 71.0 -69.0)
LCHlch(54.9 99.0 315.8)
OKLCHoklch(0.643 0.253 309.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba4dfd on white: 3.77:1
AA ✗ fail · AA-large · AAA
Aa
#ba4dfd on black: 5.57:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green30.2%
Blue99.2%

CMYK percentages

Cyan26.5%
Magenta69.6%
Yellow0.0%
Key (black)0.8%

Color previews

#ba4dfd text on a black background

contrast 5.57:1

Card sample

#ba4dfd text on a white background

contrast 3.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba4dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba4dfd in the Color Lab