Skip to content

#ba99ff

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

RGB
186, 153, 255
HSL
259°, 100%, 80%
CMYK
27, 40, 0, 0
Luminance
0.4044

Every format

HEX#ba99ff
RGBrgb(186, 153, 255)
HSLhsl(259, 100%, 80%)
CMYKcmyk(27%, 40%, 0%, 0%)
LABlab(69.8 33.0 -46.4)
LCHlch(69.8 56.9 305.5)
OKLCHoklch(0.753 0.146 297.7)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba99ff on white: 2.31:1
AA ✗ fail · AA-large · AAA
Aa
#ba99ff on black: 9.09:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green60.0%
Blue100.0%

CMYK percentages

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

Color previews

#ba99ff text on a black background

contrast 9.09:1

Card sample

#ba99ff text on a white background

contrast 2.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba99ff

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba99ff in the Color Lab