#CD87E5#CD87E5

#CD87E5 is a light, vivid purple. Relative luminance 0.360; OKLCH L 72.8% C 0.150 H 317.1°. Best body text is #000000 at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#CD87E5
RGBrgb(205, 135, 229)
HSLhsl(285, 64%, 71%)
HSVhsv(285, 41%, 90%)
CMYKcmyk(10.5%, 41%, 0%, 10.2%)
CIE-LABlab(66.49, 42.55, -37.13)
CIE-LCHlch(66.49, 56.47, 318.89°)
OKLaboklab(72.84% 0.1102 -0.1024)
OKLCHoklch(72.84% 0.15 317.1)
XYZxyz(47.9816, 35.9656, 78.5280)
Luminance0.3596 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87E5 #9FE587
analogous
#9E87E5 #CD87E5 #E587CE
triadic
#CD87E5 #E5CD87 #87E5CD
tetradic
#CD87E5 #E59E87 #9FE587 #87CEE5
square
#CD87E5 #E59E87 #9FE587 #87CEE5
split-complementary
#CD87E5 #CEE587 #87E59E
monochromatic
#9F2BC7 #B855DA #CD87E5 #E2B9F0 #F5E6FA

Accessibility & contrast

On white

2.56
#CD87E5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.19
#CD87E5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87E5
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87E5#FFFFFF#000000##000000
##CD87E51.002.568.198.19
#FFFFFF2.561.0021.0021.00
#0000008.1921.001.001.00
##0000008.1921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cd87e5;
/* rgb */ color: rgb(205, 135, 229);
/* oklch */ color: oklch(72.8% 0.150 317.1);
Tailwind
colors: {
  custom: {
    50: '#deabed',
    500: '#cd87e5',
    950: '#000000',
  },
}
SCSS
$custom: #cd87e5;
$custom-light: #deabed;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87e5",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 229
  },
  "hsl": {
    "h": 284.681,
    "s": 64.384,
    "l": 71.373
  },
  "oklch": {
    "l": 0.72842,
    "c": 0.15044,
    "h": 317.1
  },
  "luminance": 0.35964
}

Semantic roles & 50–950 ramp

primary
#CD87E5
secondary
#DEF0D8
accent
#CC1947
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CD87E5

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

Preview Lab → · Contrast checker → · Palette generator →

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