Skip to content

#ba7ccc

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

RGB
186, 124, 204
HSL
287°, 44%, 64%
CMYK
9, 39, 0, 20
Luminance
0.2921

Every format

HEX#ba7ccc
RGBrgb(186, 124, 204)
HSLhsl(287, 44%, 64%)
CMYKcmyk(9%, 39%, 0%, 20%)
LABlab(61.0 37.7 -31.9)
LCHlch(61.0 49.4 319.7)
OKLCHoklch(0.679 0.132 318.4)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba7ccc on white: 3.07:1
AA ✗ fail · AA-large · AAA
Aa
#ba7ccc on black: 6.84:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green48.6%
Blue80.0%

CMYK percentages

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

Color previews

#ba7ccc text on a black background

contrast 6.84:1

Card sample

#ba7ccc text on a white background

contrast 3.07:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba7ccc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba7ccc in the Color Lab