Skip to content

#ba0cff

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

RGB
186, 12, 255
HSL
283°, 100%, 52%
CMYK
27, 95, 0, 0
Luminance
0.1792

Every format

HEX#ba0cff
RGBrgb(186, 12, 255)
HSLhsl(283, 100%, 52%)
CMYKcmyk(27%, 95%, 0%, 0%)
LABlab(49.4 87.8 -79.0)
LCHlch(49.4 118.1 318.0)
OKLCHoklch(0.605 0.300 311.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba0cff on white: 4.58:1
AA ✓ pass · AA-large · AAA
Aa
#ba0cff on black: 4.58:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green4.7%
Blue100.0%

CMYK percentages

Cyan27.1%
Magenta95.3%
Yellow0.0%
Key (black)0.0%

Color previews

#ba0cff text on a black background

contrast 4.58:1

Card sample

#ba0cff text on a white background

contrast 4.58:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba0cff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba0cff in the Color Lab