Skip to content

#ba80fd

a light, electric violet · warm · closest name: violet

RGB
186, 128, 253
HSL
268°, 97%, 75%
CMYK
27, 49, 0, 1
Luminance
0.3297

Every format

HEX#ba80fd
RGBrgb(186, 128, 253)
HSLhsl(268, 97%, 75%)
CMYKcmyk(27%, 49%, 0%, 1%)
LABlab(64.1 46.3 -54.2)
LCHlch(64.1 71.3 310.5)
OKLCHoklch(0.710 0.182 303.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba80fd on white: 2.77:1
AA ✗ fail · AA-large · AAA
Aa
#ba80fd on black: 7.59:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green50.2%
Blue99.2%

CMYK percentages

Cyan26.5%
Magenta49.4%
Yellow0.0%
Key (black)0.8%

Color previews

#ba80fd text on a black background

contrast 7.59:1

Card sample

#ba80fd text on a white background

contrast 2.77:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba80fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba80fd in the Color Lab