Skip to content

#ba82fd

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

RGB
186, 130, 253
HSL
267°, 97%, 75%
CMYK
27, 49, 0, 1
Luminance
0.3350

Every format

HEX#ba82fd
RGBrgb(186, 130, 253)
HSLhsl(267, 97%, 75%)
CMYKcmyk(27%, 49%, 0%, 1%)
LABlab(64.6 45.2 -53.5)
LCHlch(64.6 70.0 310.2)
OKLCHoklch(0.713 0.179 303.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba82fd on white: 2.73:1
AA ✗ fail · AA-large · AAA
Aa
#ba82fd on black: 7.70:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green51.0%
Blue99.2%

CMYK percentages

Cyan26.5%
Magenta48.6%
Yellow0.0%
Key (black)0.8%

Color previews

#ba82fd text on a black background

contrast 7.70:1

Card sample

#ba82fd text on a white background

contrast 2.73:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba82fd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba82fd in the Color Lab