Skip to content

#ba01ff

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

RGB
186, 1, 255
HSL
284°, 100%, 50%
CMYK
27, 100, 0, 0
Luminance
0.1768

Every format

HEX#ba01ff
RGBrgb(186, 1, 255)
HSLhsl(284, 100%, 50%)
CMYKcmyk(27%, 100%, 0%, 0%)
LABlab(49.1 88.7 -79.5)
LCHlch(49.1 119.1 318.1)
OKLCHoklch(0.603 0.302 311.6)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba01ff on white: 4.63:1
AA ✓ pass · AA-large · AAA
Aa
#ba01ff on black: 4.54:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green0.4%
Blue100.0%

CMYK percentages

Cyan27.1%
Magenta99.6%
Yellow0.0%
Key (black)0.0%

Color previews

#ba01ff text on a black background

contrast 4.54:1

Card sample

#ba01ff text on a white background

contrast 4.63:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba01ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba01ff in the Color Lab