#CD87EF#CD87EF

#CD87EF is a light, vivid purple. Relative luminance 0.365; OKLCH L 73.3% C 0.161 H 313.9°. Best body text is #000000 at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#CD87EF
RGBrgb(205, 135, 239)
HSLhsl(280, 76%, 73%)
HSVhsv(280, 44%, 94%)
CMYKcmyk(14.2%, 43.5%, 0%, 6.3%)
CIE-LABlab(66.93, 44.60, -41.96)
CIE-LCHlch(66.93, 61.23, 316.75°)
OKLaboklab(73.31% 0.112 -0.1163)
OKLCHoklch(73.31% 0.161 313.9)
XYZxyz(49.4183, 36.5402, 86.0943)
Luminance0.3654 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87EF #A9EF87
analogous
#9987EF #CD87EF #EF87DD
triadic
#CD87EF #EFCD87 #87EFCD
tetradic
#CD87EF #EF9987 #A9EF87 #87DDEF
square
#CD87EF #EF9987 #A9EF87 #87DDEF
split-complementary
#CD87EF #DDEF87 #87EF99
monochromatic
#9F1EDE #B751E8 #CD87EF #E3BDF6 #F4E4FB

Accessibility & contrast

On white

2.53
#CD87EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.31
#CD87EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87EF
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87EF#FFFFFF#000000##000000
##CD87EF1.002.538.318.31
#FFFFFF2.531.0021.0021.00
#0000008.3121.001.001.00
##0000008.3121.001.001.00

Color blindness preview

Protanopia (red-blind)
#739FF3
Deuteranopia (green-blind)
#85A5EC
Tritanopia (blue-blind)
#CA96B0
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #cd87ef;
/* rgb */ color: rgb(205, 135, 239);
/* oklch */ color: oklch(73.3% 0.161 313.9);
Tailwind
colors: {
  custom: {
    50: '#deabf4',
    500: '#cd87ef',
    950: '#000000',
  },
}
SCSS
$custom: #cd87ef;
$custom-light: #deabf4;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87ef",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 239
  },
  "hsl": {
    "h": 280.385,
    "s": 76.471,
    "l": 73.333
  },
  "oklch": {
    "l": 0.73313,
    "c": 0.16146,
    "h": 313.9
  },
  "luminance": 0.36539
}

Semantic roles & 50–950 ramp

primary
#CD87EF
secondary
#E1F3D8
accent
#D90D4F
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #CD87EF

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

Preview Lab → · Contrast checker → · Palette generator →

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