#CC87E9#CC87E9

#CC87E9 is a light, vivid purple. Relative luminance 0.360; OKLCH L 72.9% C 0.154 H 315.4°. Best body text is #000000 at 8.21:1 contrast (WCAG AA passes).

Color values

HEX#CC87E9
RGBrgb(204, 135, 233)
HSLhsl(282, 69%, 72%)
HSVhsv(282, 42%, 91%)
CMYKcmyk(12.4%, 42.1%, 0%, 8.6%)
CIE-LABlab(66.56, 43.07, -39.24)
CIE-LCHlch(66.56, 58.27, 317.66°)
OKLaboklab(72.92% 0.1098 -0.1085)
OKLCHoklch(72.92% 0.154 315.4)
XYZxyz(48.2715, 36.0497, 81.4904)
Luminance0.3605 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC87E9 #A4E987
analogous
#9B87E9 #CC87E9 #E987D5
triadic
#CC87E9 #E9CC87 #87E9CC
tetradic
#CC87E9 #E99B87 #A4E987 #87D5E9
square
#CC87E9 #E99B87 #A4E987 #87D5E9
split-complementary
#CC87E9 #D5E987 #87E99B
monochromatic
#9D26D0 #B653E0 #CC87E9 #E2BBF2 #F4E5FA

Accessibility & contrast

On white

2.56
#CC87E9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.21
#CC87E9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC87E9
8.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC87E9#FFFFFF#000000##000000
##CC87E91.002.568.218.21
#FFFFFF2.561.0021.0021.00
#0000008.2121.001.001.00
##0000008.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#769EED
Deuteranopia (green-blind)
#88A4E6
Tritanopia (blue-blind)
#CA95AD
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #cc87e9;
/* rgb */ color: rgb(204, 135, 233);
/* oklch */ color: oklch(72.9% 0.154 315.4);
Tailwind
colors: {
  custom: {
    50: '#ddabf0',
    500: '#cc87e9',
    950: '#000000',
  },
}
SCSS
$custom: #cc87e9;
$custom-light: #ddabf0;
$custom-dark: #000000;
JSON
{
  "hex": "#cc87e9",
  "rgb": {
    "r": 204,
    "g": 135,
    "b": 233
  },
  "hsl": {
    "h": 282.245,
    "s": 69.014,
    "l": 72.157
  },
  "oklch": {
    "l": 0.72923,
    "c": 0.15436,
    "h": 315.4
  },
  "luminance": 0.36049
}

Semantic roles & 50–950 ramp

primary
#CC87E9
secondary
#E0F2D9
accent
#D1154C
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151016
muted
#837F84

Preview Lab

Preview with #CC87E9

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

Preview Lab → · Contrast checker → · Palette generator →

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