Skip to content

#ba7ecc

a balanced, soft violet · warm · closest name: plum

RGB
186, 126, 204
HSL
286°, 43%, 65%
CMYK
9, 38, 0, 20
Luminance
0.2972

Every format

HEX#ba7ecc
RGBrgb(186, 126, 204)
HSLhsl(286, 43%, 65%)
CMYKcmyk(9%, 38%, 0%, 20%)
LABlab(61.4 36.6 -31.2)
LCHlch(61.4 48.1 319.5)
OKLCHoklch(0.682 0.129 318.2)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba7ecc on white: 3.02:1
AA ✗ fail · AA-large · AAA
Aa
#ba7ecc on black: 6.94:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green49.4%
Blue80.0%

CMYK percentages

Cyan8.8%
Magenta38.2%
Yellow0.0%
Key (black)20.0%

Color previews

#ba7ecc text on a black background

contrast 6.94:1

Card sample

#ba7ecc text on a white background

contrast 3.02:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba7ecc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba7ecc in the Color Lab