#CD87E7#CD87E7

#CD87E7 is a light, vivid purple. Relative luminance 0.361; OKLCH L 72.9% C 0.153 H 316.5°. Best body text is #000000 at 8.22:1 contrast (WCAG AA passes).

Color values

HEX#CD87E7
RGBrgb(205, 135, 231)
HSLhsl(284, 67%, 72%)
HSVhsv(284, 42%, 91%)
CMYKcmyk(11.3%, 41.6%, 0%, 9.4%)
CIE-LABlab(66.58, 42.95, -38.10)
CIE-LCHlch(66.58, 57.41, 318.43°)
OKLaboklab(72.94% 0.1106 -0.1051)
OKLCHoklch(72.94% 0.153 316.5)
XYZxyz(48.2625, 36.0779, 80.0072)
Luminance0.3608 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87E7 #A1E787
analogous
#9D87E7 #CD87E7 #E787D1
triadic
#CD87E7 #E7CD87 #87E7CD
tetradic
#CD87E7 #E79D87 #A1E787 #87D1E7
square
#CD87E7 #E79D87 #A1E787 #87D1E7
split-complementary
#CD87E7 #D1E787 #87E79D
monochromatic
#9F29CB #B854DD #CD87E7 #E2BAF1 #F4E5FA

Accessibility & contrast

On white

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

On black

8.22
#CD87E7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87E7
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87E7#FFFFFF#000000##000000
##CD87E71.002.568.228.22
#FFFFFF2.561.0021.0021.00
#0000008.2221.001.001.00
##0000008.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#779EEA
Deuteranopia (green-blind)
#89A4E4
Tritanopia (blue-blind)
#CC94AC
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #cd87e7;
/* rgb */ color: rgb(205, 135, 231);
/* oklch */ color: oklch(72.9% 0.153 316.5);
Tailwind
colors: {
  custom: {
    50: '#deabef',
    500: '#cd87e7',
    950: '#000000',
  },
}
SCSS
$custom: #cd87e7;
$custom-light: #deabef;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87e7",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 231
  },
  "hsl": {
    "h": 283.75,
    "s": 66.667,
    "l": 71.765
  },
  "oklch": {
    "l": 0.72935,
    "c": 0.15262,
    "h": 316.5
  },
  "luminance": 0.36077
}

Semantic roles & 50–950 ramp

primary
#CD87E7
secondary
#DFF1D9
accent
#CF1749
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CD87E7

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

Preview Lab → · Contrast checker → · Palette generator →

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