Skip to content

#c87afd

a light, electric violet · warm · closest name: violet

RGB
200, 122, 253
HSL
276°, 97%, 74%
CMYK
21, 52, 0, 1
Luminance
0.3329

Every format

HEX#c87afd
RGBrgb(200, 122, 253)
HSLhsl(276, 97%, 74%)
CMYKcmyk(21%, 52%, 0%, 1%)
LABlab(64.4 53.0 -53.7)
LCHlch(64.4 75.5 314.7)
OKLCHoklch(0.715 0.196 309.8)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c87afd on white: 2.74:1
AA ✗ fail · AA-large · AAA
Aa
#c87afd on black: 7.66:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red78.4%
Green47.8%
Blue99.2%

CMYK percentages

Cyan20.9%
Magenta51.8%
Yellow0.0%
Key (black)0.8%

Color previews

#c87afd text on a black background

contrast 7.66:1

Card sample

#c87afd text on a white background

contrast 2.74:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

text-shadow: 0 0 14px rgba(200, 122, 253, 0.45);
Div box shadow
Elevated card
box-shadow: 0 12px 32px -8px rgba(200, 122, 253, 0.45);
Border & gradient
Gradient panel
border: 3px solid #c87afd;
background: linear-gradient(135deg, #c87afd, #FD7ADB);

Monochromatic scale

Palettes built from #c87afd

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c87afd in the Color Lab