#CC87FE#CC87FE

#CC87FE is a light, vivid violet. Relative luminance 0.373; OKLCH L 74.0% C 0.178 H 309.4°. Best body text is #000000 at 8.46:1 contrast (WCAG AA passes).

Color values

HEX#CC87FE
RGBrgb(204, 135, 254)
HSLhsl(275, 98%, 76%)
HSVhsv(275, 47%, 100%)
CMYKcmyk(19.7%, 46.9%, 0%, 0.4%)
CIE-LABlab(67.52, 47.51, -49.26)
CIE-LCHlch(67.52, 68.44, 313.96°)
OKLaboklab(73.95% 0.1131 -0.1374)
OKLCHoklch(73.95% 0.178 309.4)
XYZxyz(51.4518, 37.3218, 98.2401)
Luminance0.3732 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC87FE #B9FE87
analogous
#9187FE #CC87FE #FE87F4
triadic
#CC87FE #FECC87 #87FECC
tetradic
#CC87FE #FE9187 #B9FE87 #87F4FE
square
#CC87FE #FE9187 #B9FE87 #87F4FE
split-complementary
#CC87FE #F4FE87 #87FE91
monochromatic
#980EFD #B24AFD #CC87FE #E6C4FF #F2E1FF

Accessibility & contrast

On white

2.48
#CC87FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.46
#CC87FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC87FE
8.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC87FE#FFFFFF#000000##000000
##CC87FE1.002.488.468.46
#FFFFFF2.481.0021.0021.00
#0000008.4621.001.001.00
##0000008.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6AA1FF
Deuteranopia (green-blind)
#7DA6FB
Tritanopia (blue-blind)
#C69AB7
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #cc87fe;
/* rgb */ color: rgb(204, 135, 254);
/* oklch */ color: oklch(74.0% 0.178 309.4);
Tailwind
colors: {
  custom: {
    50: '#deabff',
    500: '#cc87fe',
    950: '#000000',
  },
}
SCSS
$custom: #cc87fe;
$custom-light: #deabff;
$custom-dark: #000000;
JSON
{
  "hex": "#cc87fe",
  "rgb": {
    "r": 204,
    "g": 135,
    "b": 254
  },
  "hsl": {
    "h": 274.79,
    "s": 98.347,
    "l": 76.275
  },
  "oklch": {
    "l": 0.73954,
    "c": 0.17795,
    "h": 309.4
  },
  "luminance": 0.37321
}

Semantic roles & 50–950 ramp

primary
#CC87FE
secondary
#E3F7D4
accent
#E60060
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #CC87FE

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

Preview Lab → · Contrast checker → · Palette generator →

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