Skip to content

#ba7fcc

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

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

Every format

HEX#ba7fcc
RGBrgb(186, 127, 204)
HSLhsl(286, 43%, 65%)
CMYKcmyk(9%, 38%, 0%, 20%)
LABlab(61.6 36.1 -30.9)
LCHlch(61.6 47.5 319.4)
OKLCHoklch(0.684 0.127 318.1)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba7fcc on white: 3.00:1
AA ✗ fail · AA-large · AAA
Aa
#ba7fcc on black: 7.00:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green49.8%
Blue80.0%

CMYK percentages

Cyan8.8%
Magenta37.7%
Yellow0.0%
Key (black)20.0%

Color previews

#ba7fcc text on a black background

contrast 7.00:1

Card sample

#ba7fcc text on a white background

contrast 3.00:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba7fcc

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba7fcc in the Color Lab