Skip to content

#ba16ff

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

RGB
186, 22, 255
HSL
282°, 100%, 54%
CMYK
27, 91, 0, 0
Luminance
0.1823

Every format

HEX#ba16ff
RGBrgb(186, 22, 255)
HSLhsl(282, 100%, 54%)
CMYKcmyk(27%, 91%, 0%, 0%)
LABlab(49.8 86.7 -78.4)
LCHlch(49.8 116.9 317.9)
OKLCHoklch(0.607 0.296 311.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba16ff on white: 4.52:1
AA ✓ pass · AA-large · AAA
Aa
#ba16ff on black: 4.65:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green8.6%
Blue100.0%

CMYK percentages

Cyan27.1%
Magenta91.4%
Yellow0.0%
Key (black)0.0%

Color previews

#ba16ff text on a black background

contrast 4.65:1

Card sample

#ba16ff text on a white background

contrast 4.52:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba16ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba16ff in the Color Lab