#CD87EC#CD87EC

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

Color values

HEX#CD87EC
RGBrgb(205, 135, 236)
HSLhsl(282, 73%, 73%)
HSVhsv(282, 43%, 93%)
CMYKcmyk(13.1%, 42.8%, 0%, 7.5%)
CIE-LABlab(66.80, 43.98, -40.51)
CIE-LCHlch(66.80, 59.79, 317.35°)
OKLaboklab(73.17% 0.1115 -0.1121)
OKLCHoklch(73.17% 0.158 314.8)
XYZxyz(48.9788, 36.3644, 83.7795)
Luminance0.3636 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87EC #A6EC87
analogous
#9A87EC #CD87EC #EC87D9
triadic
#CD87EC #ECCD87 #87ECCD
tetradic
#CD87EC #EC9A87 #A6EC87 #87D9EC
square
#CD87EC #EC9A87 #A6EC87 #87D9EC
split-complementary
#CD87EC #D9EC87 #87EC9A
monochromatic
#9F22D7 #B752E4 #CD87EC #E3BCF4 #F4E5FB

Accessibility & contrast

On white

2.54
#CD87EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.27
#CD87EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87EC
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87EC#FFFFFF#000000##000000
##CD87EC1.002.548.278.27
#FFFFFF2.541.0021.0021.00
#0000008.2721.001.001.00
##0000008.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#749EF0
Deuteranopia (green-blind)
#87A4E9
Tritanopia (blue-blind)
#CB95AE
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #cd87ec;
/* rgb */ color: rgb(205, 135, 236);
/* oklch */ color: oklch(73.2% 0.158 314.8);
Tailwind
colors: {
  custom: {
    50: '#deabf2',
    500: '#cd87ec',
    950: '#000000',
  },
}
SCSS
$custom: #cd87ec;
$custom-light: #deabf2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87ec",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 236
  },
  "hsl": {
    "h": 281.584,
    "s": 72.662,
    "l": 72.745
  },
  "oklch": {
    "l": 0.7317,
    "c": 0.15813,
    "h": 314.8
  },
  "luminance": 0.36363
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD87EC

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

Preview Lab → · Contrast checker → · Palette generator →

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