#CD87ED#CD87ED

#CD87ED is a light, vivid purple. Relative luminance 0.364; OKLCH L 73.2% C 0.159 H 314.5°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#CD87ED
RGBrgb(205, 135, 237)
HSLhsl(281, 74%, 73%)
HSVhsv(281, 43%, 93%)
CMYKcmyk(13.5%, 43%, 0%, 7.1%)
CIE-LABlab(66.84, 44.18, -41.00)
CIE-LCHlch(66.84, 60.27, 317.14°)
OKLaboklab(73.22% 0.1117 -0.1135)
OKLCHoklch(73.22% 0.159 314.5)
XYZxyz(49.1244, 36.4227, 84.5468)
Luminance0.3642 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87ED #A7ED87
analogous
#9A87ED #CD87ED #ED87DA
triadic
#CD87ED #EDCD87 #87EDCD
tetradic
#CD87ED #ED9A87 #A7ED87 #87DAED
square
#CD87ED #ED9A87 #A7ED87 #87DAED
split-complementary
#CD87ED #DAED87 #87ED9A
monochromatic
#9F21D9 #B752E5 #CD87ED #E3BCF5 #F4E4FB

Accessibility & contrast

On white

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

On black

8.28
#CD87ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87ED
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87ED#FFFFFF#000000##000000
##CD87ED1.002.538.288.28
#FFFFFF2.531.0021.0021.00
#0000008.2821.001.001.00
##0000008.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#749FF1
Deuteranopia (green-blind)
#86A5EA
Tritanopia (blue-blind)
#CB95AF
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #cd87ed;
/* rgb */ color: rgb(205, 135, 237);
/* oklch */ color: oklch(73.2% 0.159 314.5);
Tailwind
colors: {
  custom: {
    50: '#deabf3',
    500: '#cd87ed',
    950: '#000000',
  },
}
SCSS
$custom: #cd87ed;
$custom-light: #deabf3;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87ed",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 237
  },
  "hsl": {
    "h": 281.176,
    "s": 73.913,
    "l": 72.941
  },
  "oklch": {
    "l": 0.73217,
    "c": 0.15923,
    "h": 314.5
  },
  "luminance": 0.36422
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD87ED

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

Preview Lab → · Contrast checker → · Palette generator →

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