#CD87E8#CD87E8

#CD87E8 is a light, vivid purple. Relative luminance 0.361; OKLCH L 73.0% C 0.154 H 316.1°. Best body text is #000000 at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#CD87E8
RGBrgb(205, 135, 232)
HSLhsl(283, 68%, 72%)
HSVhsv(283, 42%, 91%)
CMYKcmyk(11.6%, 41.8%, 0%, 9%)
CIE-LABlab(66.62, 43.15, -38.58)
CIE-LCHlch(66.62, 57.89, 318.20°)
OKLaboklab(72.98% 0.1108 -0.1065)
OKLCHoklch(72.98% 0.154 316.1)
XYZxyz(48.4041, 36.1346, 80.7531)
Luminance0.3613 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87E8 #A2E887
analogous
#9D87E8 #CD87E8 #E887D3
triadic
#CD87E8 #E8CD87 #87E8CD
tetradic
#CD87E8 #E89D87 #A2E887 #87D3E8
square
#CD87E8 #E89D87 #A2E887 #87D3E8
split-complementary
#CD87E8 #D3E887 #87E89D
monochromatic
#9F27CD #B854DE #CD87E8 #E2BAF2 #F4E5FA

Accessibility & contrast

On white

2.55
#CD87E8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.23
#CD87E8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87E8
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87E8#FFFFFF#000000##000000
##CD87E81.002.558.238.23
#FFFFFF2.551.0021.0021.00
#0000008.2321.001.001.00
##0000008.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#769EEC
Deuteranopia (green-blind)
#89A4E5
Tritanopia (blue-blind)
#CC94AD
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #cd87e8;
/* rgb */ color: rgb(205, 135, 232);
/* oklch */ color: oklch(73.0% 0.154 316.1);
Tailwind
colors: {
  custom: {
    50: '#deabef',
    500: '#cd87e8',
    950: '#000000',
  },
}
SCSS
$custom: #cd87e8;
$custom-light: #deabef;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87e8",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 232
  },
  "hsl": {
    "h": 283.299,
    "s": 67.832,
    "l": 71.961
  },
  "oklch": {
    "l": 0.72981,
    "c": 0.15372,
    "h": 316.1
  },
  "luminance": 0.36133
}

Semantic roles & 50–950 ramp

primary
#CD87E8
secondary
#E0F2D9
accent
#D0164A
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CD87E8

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

Preview Lab → · Contrast checker → · Palette generator →

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