#CC87FC#CC87FC

#CC87FC is a light, vivid violet. Relative luminance 0.372; OKLCH L 73.9% C 0.176 H 309.9°. Best body text is #000000 at 8.44:1 contrast (WCAG AA passes).

Color values

HEX#CC87FC
RGBrgb(204, 135, 252)
HSLhsl(275, 95%, 76%)
HSVhsv(275, 46%, 99%)
CMYKcmyk(19%, 46.4%, 0%, 1.2%)
CIE-LABlab(67.42, 47.07, -48.32)
CIE-LCHlch(67.42, 67.46, 314.25°)
OKLaboklab(73.85% 0.1128 -0.1347)
OKLCHoklch(73.85% 0.176 309.9)
XYZxyz(51.1332, 37.1944, 96.5621)
Luminance0.3719 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC87FC #B7FC87
analogous
#9187FC #CC87FC #FC87F1
triadic
#CC87FC #FCCC87 #87FCCC
tetradic
#CC87FC #FC9187 #B7FC87 #87F1FC
square
#CC87FC #FC9187 #B7FC87 #87F1FC
split-complementary
#CC87FC #F1FC87 #87FC91
monochromatic
#9910F9 #B34BFB #CC87FC #E5C3FD #F2E1FE

Accessibility & contrast

On white

2.49
#CC87FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.44
#CC87FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC87FC
8.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC87FC#FFFFFF#000000##000000
##CC87FC1.002.498.448.44
#FFFFFF2.491.0021.0021.00
#0000008.4421.001.001.00
##0000008.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6BA1FF
Deuteranopia (green-blind)
#7EA5F9
Tritanopia (blue-blind)
#C69AB6
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #cc87fc;
/* rgb */ color: rgb(204, 135, 252);
/* oklch */ color: oklch(73.9% 0.176 309.9);
Tailwind
colors: {
  custom: {
    50: '#deabfe',
    500: '#cc87fc',
    950: '#000000',
  },
}
SCSS
$custom: #cc87fc;
$custom-light: #deabfe;
$custom-dark: #000000;
JSON
{
  "hex": "#cc87fc",
  "rgb": {
    "r": 204,
    "g": 135,
    "b": 252
  },
  "hsl": {
    "h": 275.385,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.73852,
    "c": 0.17569,
    "h": 309.9
  },
  "luminance": 0.37194
}

Semantic roles & 50–950 ramp

primary
#CC87FC
secondary
#E2F6D5
accent
#E6005E
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #CC87FC

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

Preview Lab → · Contrast checker → · Palette generator →

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