#CD87E2#CD87E2

#CD87E2 is a light, vivid purple. Relative luminance 0.358; OKLCH L 72.7% C 0.147 H 318.2°. Best body text is #000000 at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#CD87E2
RGBrgb(205, 135, 226)
HSLhsl(286, 61%, 71%)
HSVhsv(286, 40%, 89%)
CMYKcmyk(9.3%, 40.3%, 0%, 11.4%)
CIE-LABlab(66.37, 41.94, -35.67)
CIE-LCHlch(66.37, 55.06, 319.62°)
OKLaboklab(72.71% 0.1097 -0.0982)
OKLCHoklch(72.71% 0.147 318.2)
XYZxyz(47.5664, 35.7995, 76.3411)
Luminance0.3580 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87E2 #9CE287
analogous
#9F87E2 #CD87E2 #E287C9
triadic
#CD87E2 #E2CD87 #87E2CD
tetradic
#CD87E2 #E29F87 #9CE287 #87C9E2
square
#CD87E2 #E29F87 #9CE287 #87C9E2
split-complementary
#CD87E2 #C9E287 #87E29F
monochromatic
#9F2EC0 #B856D6 #CD87E2 #E2B8EE #F5E6F9

Accessibility & contrast

On white

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

On black

8.16
#CD87E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87E2
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87E2#FFFFFF#000000##000000
##CD87E21.002.578.168.16
#FFFFFF2.571.0021.0021.00
#0000008.1621.001.001.00
##0000008.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#799DE5
Deuteranopia (green-blind)
#8BA4DF
Tritanopia (blue-blind)
#CD93AA
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #cd87e2;
/* rgb */ color: rgb(205, 135, 226);
/* oklch */ color: oklch(72.7% 0.147 318.2);
Tailwind
colors: {
  custom: {
    50: '#ddabeb',
    500: '#cd87e2',
    950: '#000000',
  },
}
SCSS
$custom: #cd87e2;
$custom-light: #ddabeb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87e2",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 226
  },
  "hsl": {
    "h": 286.154,
    "s": 61.074,
    "l": 70.784
  },
  "oklch": {
    "l": 0.72705,
    "c": 0.14718,
    "h": 318.2
  },
  "luminance": 0.35798
}

Semantic roles & 50–950 ramp

primary
#CD87E2
secondary
#DCEFD6
accent
#C91D44
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CD87E2

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

Preview Lab → · Contrast checker → · Palette generator →

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