Skip to content

#ba80cd

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

RGB
186, 128, 205
HSL
285°, 44%, 65%
CMYK
9, 38, 0, 20
Luminance
0.3029

Every format

HEX#ba80cd
RGBrgb(186, 128, 205)
HSLhsl(285, 44%, 65%)
CMYKcmyk(9%, 38%, 0%, 20%)
LABlab(61.9 35.7 -31.1)
LCHlch(61.9 47.3 319.0)
OKLCHoklch(0.686 0.126 317.5)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#ba80cd on white: 2.98:1
AA ✗ fail · AA-large · AAA
Aa
#ba80cd on black: 7.06:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red72.9%
Green50.2%
Blue80.4%

CMYK percentages

Cyan9.3%
Magenta37.6%
Yellow0.0%
Key (black)19.6%

Color previews

#ba80cd text on a black background

contrast 7.06:1

Card sample

#ba80cd text on a white background

contrast 2.98:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #ba80cd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #ba80cd in the Color Lab