#CD87E9#CD87E9

#CD87E9 is a light, vivid purple. Relative luminance 0.362; OKLCH L 73.0% C 0.155 H 315.8°. Best body text is #000000 at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#CD87E9
RGBrgb(205, 135, 233)
HSLhsl(283, 69%, 72%)
HSVhsv(283, 42%, 91%)
CMYKcmyk(12%, 42.1%, 0%, 8.6%)
CIE-LABlab(66.67, 43.36, -39.07)
CIE-LCHlch(66.67, 58.36, 317.98°)
OKLaboklab(73.03% 0.111 -0.1079)
OKLCHoklch(73.03% 0.155 315.8)
XYZxyz(48.5466, 36.1915, 81.5033)
Luminance0.3619 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87E9 #A3E987
analogous
#9C87E9 #CD87E9 #E987D4
triadic
#CD87E9 #E9CD87 #87E9CD
tetradic
#CD87E9 #E99C87 #A3E987 #87D4E9
square
#CD87E9 #E99C87 #A3E987 #87D4E9
split-complementary
#CD87E9 #D4E987 #87E99C
monochromatic
#9F26D0 #B753E0 #CD87E9 #E3BBF2 #F4E5FA

Accessibility & contrast

On white

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

On black

8.24
#CD87E9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87E9
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87E9#FFFFFF#000000##000000
##CD87E91.002.558.248.24
#FFFFFF2.551.0021.0021.00
#0000008.2421.001.001.00
##0000008.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#769EED
Deuteranopia (green-blind)
#88A4E6
Tritanopia (blue-blind)
#CC94AD
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #cd87e9;
/* rgb */ color: rgb(205, 135, 233);
/* oklch */ color: oklch(73.0% 0.155 315.8);
Tailwind
colors: {
  custom: {
    50: '#deabf0',
    500: '#cd87e9',
    950: '#000000',
  },
}
SCSS
$custom: #cd87e9;
$custom-light: #deabf0;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87e9",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 233
  },
  "hsl": {
    "h": 282.857,
    "s": 69.014,
    "l": 72.157
  },
  "oklch": {
    "l": 0.73028,
    "c": 0.15482,
    "h": 315.8
  },
  "luminance": 0.3619
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD87E9

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

Preview Lab → · Contrast checker → · Palette generator →

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