Skip to content

#ba0fdf

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

RGB
186, 15, 223
HSL
289°, 87%, 47%
CMYK
17, 93, 0, 13
Luminance
0.1611

Every format

HEX#ba0fdf
RGBrgb(186, 15, 223)
HSLhsl(289, 87%, 47%)
CMYKcmyk(17%, 93%, 0%, 13%)
LABlab(47.1 82.0 -64.7)
LCHlch(47.1 104.4 321.7)
OKLCHoklch(0.582 0.276 318.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba0fdf on white: 4.97:1
AA ✓ pass · AA-large · AAA
Aa
#ba0fdf on black: 4.22:1
AA ✗ fail · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green5.9%
Blue87.5%

CMYK percentages

Cyan16.6%
Magenta93.3%
Yellow0.0%
Key (black)12.5%

Color previews

#ba0fdf text on a black background

contrast 4.22:1

Card sample

#ba0fdf text on a white background

contrast 4.97:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba0fdf

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba0fdf in the Color Lab