Skip to content

#ba3fee

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

RGB
186, 63, 238
HSL
282°, 84%, 59%
CMYK
22, 74, 0, 7
Luminance
0.2017

Every format

HEX#ba3fee
RGBrgb(186, 63, 238)
HSLhsl(282, 84%, 59%)
CMYKcmyk(22%, 74%, 0%, 7%)
LABlab(52.0 73.4 -65.3)
LCHlch(52.0 98.2 318.3)
OKLCHoklch(0.619 0.254 313.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba3fee on white: 4.17:1
AA ✗ fail · AA-large · AAA
Aa
#ba3fee on black: 5.03:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green24.7%
Blue93.3%

CMYK percentages

Cyan21.8%
Magenta73.5%
Yellow0.0%
Key (black)6.7%

Color previews

#ba3fee text on a black background

contrast 5.03:1

Card sample

#ba3fee text on a white background

contrast 4.17:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba3fee

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba3fee in the Color Lab