Skip to content

#ba8cff

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

RGB
186, 140, 255
HSL
264°, 100%, 78%
CMYK
27, 45, 0, 0
Luminance
0.3642

Every format

HEX#ba8cff
RGBrgb(186, 140, 255)
HSLhsl(264, 100%, 78%)
CMYKcmyk(27%, 45%, 0%, 0%)
LABlab(66.8 40.2 -51.0)
LCHlch(66.8 65.0 308.3)
OKLCHoklch(0.731 0.166 300.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba8cff on white: 2.54:1
AA ✗ fail · AA-large · AAA
Aa
#ba8cff on black: 8.28:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green54.9%
Blue100.0%

CMYK percentages

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

Color previews

#ba8cff text on a black background

contrast 8.28:1

Card sample

#ba8cff text on a white background

contrast 2.54:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba8cff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba8cff in the Color Lab