Skip to content

#ba9cef

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

RGB
186, 156, 239
HSL
262°, 72%, 78%
CMYK
22, 35, 0, 6
Luminance
0.4045

Every format

HEX#ba9cef
RGBrgb(186, 156, 239)
HSLhsl(262, 72%, 78%)
CMYKcmyk(22%, 35%, 0%, 6%)
LABlab(69.8 27.6 -37.6)
LCHlch(69.8 46.7 306.3)
OKLCHoklch(0.750 0.121 300.1)

Copy-ready code

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

Accessibility — WCAG contrast

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

RGB percentages

Red72.9%
Green61.2%
Blue93.7%

CMYK percentages

Cyan22.2%
Magenta34.7%
Yellow0.0%
Key (black)6.3%

Color previews

#ba9cef text on a black background

contrast 9.09:1

Card sample

#ba9cef text on a white background

contrast 2.31:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba9cef

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba9cef in the Color Lab