#CD87E4#CD87E4

#CD87E4 is a light, vivid purple. Relative luminance 0.359; OKLCH L 72.8% C 0.149 H 317.5°. Best body text is #000000 at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#CD87E4
RGBrgb(205, 135, 228)
HSLhsl(285, 63%, 71%)
HSVhsv(285, 41%, 89%)
CMYKcmyk(10.1%, 40.8%, 0%, 10.6%)
CIE-LABlab(66.45, 42.34, -36.64)
CIE-LCHlch(66.45, 56.00, 319.13°)
OKLaboklab(72.8% 0.1101 -0.101)
OKLCHoklch(72.8% 0.149 317.5)
XYZxyz(47.8424, 35.9099, 77.7948)
Luminance0.3591 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87E4 #9EE487
analogous
#9E87E4 #CD87E4 #E487CC
triadic
#CD87E4 #E4CD87 #87E4CD
tetradic
#CD87E4 #E49E87 #9EE487 #87CCE4
square
#CD87E4 #E49E87 #9EE487 #87CCE4
split-complementary
#CD87E4 #CCE487 #87E49E
monochromatic
#9F2CC4 #B855D9 #CD87E4 #E2B9EF #F5E6F9

Accessibility & contrast

On white

2.57
#CD87E4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.18
#CD87E4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87E4
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87E4#FFFFFF#000000##000000
##CD87E41.002.578.188.18
#FFFFFF2.571.0021.0021.00
#0000008.1821.001.001.00
##0000008.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#789DE7
Deuteranopia (green-blind)
#8AA4E1
Tritanopia (blue-blind)
#CD93AB
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #cd87e4;
/* rgb */ color: rgb(205, 135, 228);
/* oklch */ color: oklch(72.8% 0.149 317.5);
Tailwind
colors: {
  custom: {
    50: '#deabed',
    500: '#cd87e4',
    950: '#000000',
  },
}
SCSS
$custom: #cd87e4;
$custom-light: #deabed;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87e4",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 228
  },
  "hsl": {
    "h": 285.161,
    "s": 63.265,
    "l": 71.176
  },
  "oklch": {
    "l": 0.72796,
    "c": 0.14935,
    "h": 317.5
  },
  "luminance": 0.35909
}

Semantic roles & 50–950 ramp

primary
#CD87E4
secondary
#DDF0D7
accent
#CB1A46
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CD87E4

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#CD87E4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva