Skip to content

#ba0fff

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

RGB
186, 15, 255
HSL
283°, 100%, 53%
CMYK
27, 94, 0, 0
Luminance
0.1800

Every format

HEX#ba0fff
RGBrgb(186, 15, 255)
HSLhsl(283, 100%, 53%)
CMYKcmyk(27%, 94%, 0%, 0%)
LABlab(49.5 87.5 -78.9)
LCHlch(49.5 117.8 318.0)
OKLCHoklch(0.605 0.299 311.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba0fff on white: 4.57:1
AA ✓ pass · AA-large · AAA
Aa
#ba0fff on black: 4.60:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green5.9%
Blue100.0%

CMYK percentages

Cyan27.1%
Magenta94.1%
Yellow0.0%
Key (black)0.0%

Color previews

#ba0fff text on a black background

contrast 4.60:1

Card sample

#ba0fff text on a white background

contrast 4.57:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba0fff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba0fff in the Color Lab