Skip to content

#ba0def

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

RGB
186, 13, 239
HSL
286°, 90%, 49%
CMYK
22, 95, 0, 6
Luminance
0.1696

Every format

HEX#ba0def
RGBrgb(186, 13, 239)
HSLhsl(286, 90%, 49%)
CMYKcmyk(22%, 95%, 0%, 6%)
LABlab(48.2 84.9 -72.0)
LCHlch(48.2 111.3 319.7)
OKLCHoklch(0.593 0.288 314.9)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba0def on white: 4.78:1
AA ✓ pass · AA-large · AAA
Aa
#ba0def on black: 4.39:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green5.1%
Blue93.7%

CMYK percentages

Cyan22.2%
Magenta94.6%
Yellow0.0%
Key (black)6.3%

Color previews

#ba0def text on a black background

contrast 4.39:1

Card sample

#ba0def text on a white background

contrast 4.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba0def

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba0def in the Color Lab