#CD87EB#CD87EB

#CD87EB is a light, vivid purple. Relative luminance 0.363; OKLCH L 73.1% C 0.157 H 315.2°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#CD87EB
RGBrgb(205, 135, 235)
HSLhsl(282, 71%, 73%)
HSVhsv(282, 43%, 92%)
CMYKcmyk(12.8%, 42.6%, 0%, 7.8%)
CIE-LABlab(66.75, 43.77, -40.03)
CIE-LCHlch(66.75, 59.32, 317.55°)
OKLaboklab(73.12% 0.1114 -0.1107)
OKLCHoklch(73.12% 0.157 315.2)
XYZxyz(48.8339, 36.3065, 83.0165)
Luminance0.3630 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD87EB #A5EB87
analogous
#9B87EB #CD87EB #EB87D7
triadic
#CD87EB #EBCD87 #87EBCD
tetradic
#CD87EB #EB9B87 #A5EB87 #87D7EB
square
#CD87EB #EB9B87 #A5EB87 #87D7EB
split-complementary
#CD87EB #D7EB87 #87EB9B
monochromatic
#9F23D4 #B753E2 #CD87EB #E3BBF4 #F4E5FB

Accessibility & contrast

On white

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

On black

8.26
#CD87EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD87EB
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD87EB#FFFFFF#000000##000000
##CD87EB1.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#759EEF
Deuteranopia (green-blind)
#87A4E8
Tritanopia (blue-blind)
#CB95AE
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #cd87eb;
/* rgb */ color: rgb(205, 135, 235);
/* oklch */ color: oklch(73.1% 0.157 315.2);
Tailwind
colors: {
  custom: {
    50: '#deabf2',
    500: '#cd87eb',
    950: '#000000',
  },
}
SCSS
$custom: #cd87eb;
$custom-light: #deabf2;
$custom-dark: #000000;
JSON
{
  "hex": "#cd87eb",
  "rgb": {
    "r": 205,
    "g": 135,
    "b": 235
  },
  "hsl": {
    "h": 282,
    "s": 71.429,
    "l": 72.549
  },
  "oklch": {
    "l": 0.73122,
    "c": 0.15703,
    "h": 315.2
  },
  "luminance": 0.36305
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CD87EB

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

Preview Lab → · Contrast checker → · Palette generator →

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