Skip to content

#ba3dff

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

RGB
186, 61, 255
HSL
279°, 100%, 62%
CMYK
27, 76, 0, 0
Luminance
0.2100

Every format

HEX#ba3dff
RGBrgb(186, 61, 255)
HSLhsl(279, 100%, 62%)
CMYKcmyk(27%, 76%, 0%, 0%)
LABlab(53.0 77.4 -73.3)
LCHlch(53.0 106.6 316.6)
OKLCHoklch(0.629 0.271 309.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba3dff on white: 4.04:1
AA ✗ fail · AA-large · AAA
Aa
#ba3dff on black: 5.20:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green23.9%
Blue100.0%

CMYK percentages

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

Color previews

#ba3dff text on a black background

contrast 5.20:1

Card sample

#ba3dff text on a white background

contrast 4.04:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba3dff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba3dff in the Color Lab