Skip to content

#c87afb

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

RGB
200, 122, 251
HSL
276°, 94%, 73%
CMYK
20, 51, 0, 2
Luminance
0.3316

Every format

HEX#c87afb
RGBrgb(200, 122, 251)
HSLhsl(276, 94%, 73%)
CMYKcmyk(20%, 51%, 0%, 2%)
LABlab(64.3 52.6 -52.8)
LCHlch(64.3 74.5 314.9)
OKLCHoklch(0.714 0.194 310.3)

Copy-ready code

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

Accessibility — WCAG contrast

Aa
#c87afb on white: 2.75:1
AA ✗ fail · AA-large · AAA
Aa
#c87afb on black: 7.63:1
AA ✓ pass · AA-large · AAA
true color
protanopia
deuteranopia
tritanopia

RGB percentages

Red78.4%
Green47.8%
Blue98.4%

CMYK percentages

Cyan20.3%
Magenta51.4%
Yellow0.0%
Key (black)1.6%

Color previews

#c87afb text on a black background

contrast 7.63:1

Card sample

#c87afb text on a white background

contrast 2.75:1

Card sample

CSS3 live lab

Text font color

The quick brown fox

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

Glowing headline

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

Soft neon halo

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

Monochromatic scale

Palettes built from #c87afb

Shades — darker

Tints — lighter

Hue & tone neighbors

Color harmonies

Nearest named colors

Work with #c87afb in the Color Lab