#CD87EA#CD87EA

#CD87EA is a light, vivid purple. Relative luminance 0.362; OKLCH L 73.1% C 0.156 H 315.5°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#CD87EA
RGBrgb(205, 135, 234)
HSLhsl(282, 70%, 72%)
HSVhsv(282, 42%, 92%)
CMYKcmyk(12.4%, 42.3%, 0%, 8.2%)
CIE-LABlab(66.71, 43.56, -39.55)
CIE-LCHlch(66.71, 58.84, 317.76°)
OKLaboklab(73.08% 0.1112 -0.1093)
OKLCHoklch(73.08% 0.156 315.5)
XYZxyz(48.6898, 36.2488, 82.2578)
Luminance0.3625 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87EA #A4EA87
analogous
#9B87EA #CD87EA #EA87D6
triadic
#CD87EA #EACD87 #87EACD
tetradic
#CD87EA #EA9B87 #A4EA87 #87D6EA
square
#CD87EA #EA9B87 #A4EA87 #87D6EA
split-complementary
#CD87EA #D6EA87 #87EA9B
monochromatic
#9F25D2 #B753E1 #CD87EA #E3BBF3 #F4E5FA

Accessibility & contrast

On white

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

On black

8.25
#CD87EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87EA
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87EA#FFFFFF#000000##000000
##CD87EA1.002.558.258.25
#FFFFFF2.551.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#759EEE
Deuteranopia (green-blind)
#88A4E7
Tritanopia (blue-blind)
#CC95AD
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #cd87ea;
/* rgb */ color: rgb(205, 135, 234);
/* oklch */ color: oklch(73.1% 0.156 315.5);
Tailwind
colors: {
  custom: {
    50: '#deabf1',
    500: '#cd87ea',
    950: '#000000',
  },
}
SCSS
$custom: #cd87ea;
$custom-light: #deabf1;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87ea",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 234
  },
  "hsl": {
    "h": 282.424,
    "s": 70.213,
    "l": 72.353
  },
  "oklch": {
    "l": 0.73075,
    "c": 0.15592,
    "h": 315.5
  },
  "luminance": 0.36248
}

Semantic roles & 50–950 ramp

primary
#CD87EA
secondary
#E0F2D9
accent
#D2134B
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #CD87EA

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

Preview Lab → · Contrast checker → · Palette generator →

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