Skip to content

#ba7ffd

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

RGB
186, 127, 253
HSL
268°, 97%, 75%
CMYK
27, 50, 0, 1
Luminance
0.3271

Every format

HEX#ba7ffd
RGBrgb(186, 127, 253)
HSLhsl(268, 97%, 75%)
CMYKcmyk(27%, 50%, 0%, 1%)
LABlab(63.9 46.8 -54.5)
LCHlch(63.9 71.9 310.7)
OKLCHoklch(0.708 0.184 303.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba7ffd on white: 2.78:1
AA ✗ fail · AA-large · AAA
Aa
#ba7ffd on black: 7.54:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green49.8%
Blue99.2%

CMYK percentages

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

Color previews

#ba7ffd text on a black background

contrast 7.54:1

Card sample

#ba7ffd text on a white background

contrast 2.78:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba7ffd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba7ffd in the Color Lab