Skip to content

#ba9af0

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

RGB
186, 154, 240
HSL
262°, 74%, 77%
CMYK
23, 36, 0, 6
Luminance
0.3984

Every format

HEX#ba9af0
RGBrgb(186, 154, 240)
HSLhsl(262, 74%, 77%)
CMYKcmyk(23%, 36%, 0%, 6%)
LABlab(69.4 28.9 -38.9)
LCHlch(69.4 48.5 306.7)
OKLCHoklch(0.747 0.125 300.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba9af0 on white: 2.34:1
AA ✗ fail · AA-large · AAA
Aa
#ba9af0 on black: 8.97:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green60.4%
Blue94.1%

CMYK percentages

Cyan22.5%
Magenta35.8%
Yellow0.0%
Key (black)5.9%

Color previews

#ba9af0 text on a black background

contrast 8.97:1

Card sample

#ba9af0 text on a white background

contrast 2.34:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba9af0

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba9af0 in the Color Lab