#CD87E1#CD87E1

#CD87E1 is a light, vivid purple. Relative luminance 0.357; OKLCH L 72.7% C 0.146 H 318.5°. Best body text is #000000 at 8.15:1 contrast (WCAG AA passes).

Color values

HEX#CD87E1
RGBrgb(205, 135, 225)
HSLhsl(287, 60%, 71%)
HSVhsv(287, 40%, 88%)
CMYKcmyk(8.9%, 40%, 0%, 11.8%)
CIE-LABlab(66.32, 41.74, -35.18)
CIE-LCHlch(66.32, 54.59, 319.88°)
OKLaboklab(72.66% 0.1095 -0.0968)
OKLCHoklch(72.66% 0.146 318.5)
XYZxyz(47.4296, 35.7447, 75.6205)
Luminance0.3574 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87E1 #9BE187
analogous
#A087E1 #CD87E1 #E187C8
triadic
#CD87E1 #E1CD87 #87E1CD
tetradic
#CD87E1 #E1A087 #9BE187 #87C8E1
square
#CD87E1 #E1A087 #9BE187 #87C8E1
split-complementary
#CD87E1 #C8E187 #87E1A0
monochromatic
#9E30BE #B956D5 #CD87E1 #E1B8ED #F5E7F9

Accessibility & contrast

On white

2.58
#CD87E1 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.15
#CD87E1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87E1
8.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87E1#FFFFFF#000000##000000
##CD87E11.002.588.158.15
#FFFFFF2.581.0021.0021.00
#0000008.1521.001.001.00
##0000008.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7A9DE4
Deuteranopia (green-blind)
#8CA4DE
Tritanopia (blue-blind)
#CD92A9
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #cd87e1;
/* rgb */ color: rgb(205, 135, 225);
/* oklch */ color: oklch(72.7% 0.146 318.5);
Tailwind
colors: {
  custom: {
    50: '#ddabea',
    500: '#cd87e1',
    950: '#000000',
  },
}
SCSS
$custom: #cd87e1;
$custom-light: #ddabea;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87e1",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 225
  },
  "hsl": {
    "h": 286.667,
    "s": 60,
    "l": 70.588
  },
  "oklch": {
    "l": 0.7266,
    "c": 0.1461,
    "h": 318.5
  },
  "luminance": 0.35743
}

Semantic roles & 50–950 ramp

primary
#CD87E1
secondary
#DBEED6
accent
#C81E44
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CD87E1

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

Preview Lab → · Contrast checker → · Palette generator →

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