Skip to content

#ba3dfd

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

RGB
186, 61, 253
HSL
279°, 98%, 62%
CMYK
27, 76, 0, 1
Luminance
0.2087

Every format

HEX#ba3dfd
RGBrgb(186, 61, 253)
HSLhsl(279, 98%, 62%)
CMYKcmyk(27%, 76%, 0%, 1%)
LABlab(52.8 77.0 -72.4)
LCHlch(52.8 105.7 316.8)
OKLCHoklch(0.628 0.269 310.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba3dfd on white: 4.06:1
AA ✗ fail · AA-large · AAA
Aa
#ba3dfd on black: 5.17:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green23.9%
Blue99.2%

CMYK percentages

Cyan26.5%
Magenta75.9%
Yellow0.0%
Key (black)0.8%

Color previews

#ba3dfd text on a black background

contrast 5.17:1

Card sample

#ba3dfd text on a white background

contrast 4.06:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba3dfd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba3dfd in the Color Lab