#CC87FF#CC87FF

#CC87FF is a light, vivid violet. Relative luminance 0.374; OKLCH L 74.0% C 0.179 H 309.2°. Best body text is #000000 at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#CC87FF
RGBrgb(204, 135, 255)
HSLhsl(275, 100%, 76%)
HSVhsv(275, 47%, 100%)
CMYKcmyk(20%, 47.1%, 0%, 0%)
CIE-LABlab(67.57, 47.72, -49.73)
CIE-LCHlch(67.57, 68.93, 313.82°)
OKLaboklab(74.01% 0.1132 -0.1388)
OKLCHoklch(74.01% 0.179 309.2)
XYZxyz(51.6124, 37.3861, 99.0856)
Luminance0.3739 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC87FF #BAFF87
analogous
#9087FF #CC87FF #FF87F6
triadic
#CC87FF #FFCC87 #87FFCC
tetradic
#CC87FF #FF9087 #BAFF87 #87F6FF
square
#CC87FF #FF9087 #BAFF87 #87F6FF
split-complementary
#CC87FF #F6FF87 #87FF90
monochromatic
#980DFF #B24AFF #CC87FF #E6C4FF #F2E0FF

Accessibility & contrast

On white

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

On black

8.48
#CC87FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC87FF
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC87FF#FFFFFF#000000##000000
##CC87FF1.002.488.488.48
#FFFFFF2.481.0021.0021.00
#0000008.4821.001.001.00
##0000008.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#69A2FF
Deuteranopia (green-blind)
#7CA6FC
Tritanopia (blue-blind)
#C59BB7
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #cc87ff;
/* rgb */ color: rgb(204, 135, 255);
/* oklch */ color: oklch(74.0% 0.179 309.2);
Tailwind
colors: {
  custom: {
    50: '#deabff',
    500: '#cc87ff',
    950: '#000000',
  },
}
SCSS
$custom: #cc87ff;
$custom-light: #deabff;
$custom-dark: #000000;
JSON
{
  "hex": "#cc87ff",
  "rgb": {
    "r": 204,
    "g": 135,
    "b": 255
  },
  "hsl": {
    "h": 274.5,
    "s": 100,
    "l": 76.471
  },
  "oklch": {
    "l": 0.74006,
    "c": 0.1791,
    "h": 309.2
  },
  "luminance": 0.37385
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC87FF

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

Preview Lab → · Contrast checker → · Palette generator →

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