Skip to content

#ba00ef

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

RGB
186, 0, 239
HSL
287°, 100%, 47%
CMYK
22, 100, 0, 6
Luminance
0.1667

Every format

HEX#ba00ef
RGBrgb(186, 0, 239)
HSLhsl(287, 100%, 47%)
CMYKcmyk(22%, 100%, 0%, 6%)
LABlab(47.8 86.0 -72.6)
LCHlch(47.8 112.5 319.8)
OKLCHoklch(0.590 0.291 315.0)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba00ef on white: 4.85:1
AA ✓ pass · AA-large · AAA
Aa
#ba00ef on black: 4.33:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green0.0%
Blue93.7%

CMYK percentages

Cyan22.2%
Magenta100.0%
Yellow0.0%
Key (black)6.3%

Color previews

#ba00ef text on a black background

contrast 4.33:1

Card sample

#ba00ef text on a white background

contrast 4.85:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba00ef

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba00ef in the Color Lab