#CC87EE#CC87EE

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

Color values

HEX#CC87EE
RGBrgb(204, 135, 238)
HSLhsl(280, 75%, 73%)
HSVhsv(280, 43%, 93%)
CMYKcmyk(14.3%, 43.3%, 0%, 6.7%)
CIE-LABlab(66.78, 44.10, -41.65)
CIE-LCHlch(66.78, 60.66, 316.64°)
OKLaboklab(73.16% 0.1107 -0.1154)
OKLCHoklch(73.16% 0.16 313.8)
XYZxyz(48.9959, 36.3395, 85.3055)
Luminance0.3634 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC87EE #A9EE87
analogous
#9887EE #CC87EE #EE87DC
triadic
#CC87EE #EECC87 #87EECC
tetradic
#CC87EE #EE9887 #A9EE87 #87DCEE
square
#CC87EE #EE9887 #A9EE87 #87DCEE
split-complementary
#CC87EE #DCEE87 #87EE98
monochromatic
#9D1FDC #B551E6 #CC87EE #E3BDF6 #F4E4FB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CC87EE#FFFFFF#000000##000000
##CC87EE1.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)
#739FF2
Deuteranopia (green-blind)
#85A4EB
Tritanopia (blue-blind)
#C996AF
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #cc87ee;
/* rgb */ color: rgb(204, 135, 238);
/* oklch */ color: oklch(73.2% 0.160 313.8);
Tailwind
colors: {
  custom: {
    50: '#ddabf4',
    500: '#cc87ee',
    950: '#000000',
  },
}
SCSS
$custom: #cc87ee;
$custom-light: #ddabf4;
$custom-dark: #000000;
JSON
{
  "hex": "#cc87ee",
  "rgb": {
    "r": 204,
    "g": 135,
    "b": 238
  },
  "hsl": {
    "h": 280.194,
    "s": 75.182,
    "l": 73.137
  },
  "oklch": {
    "l": 0.7316,
    "c": 0.15992,
    "h": 313.8
  },
  "luminance": 0.36338
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC87EE

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

Preview Lab → · Contrast checker → · Palette generator →

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