#CC87F2#CC87F2

#CC87F2 is a light, vivid violet. Relative luminance 0.366; OKLCH L 73.4% C 0.164 H 312.6°. Best body text is #000000 at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#CC87F2
RGBrgb(204, 135, 242)
HSLhsl(279, 80%, 74%)
HSVhsv(279, 44%, 95%)
CMYKcmyk(15.7%, 44.2%, 0%, 5.1%)
CIE-LABlab(66.96, 44.94, -43.57)
CIE-LCHlch(66.96, 62.59, 315.89°)
OKLaboklab(73.35% 0.1114 -0.1209)
OKLCHoklch(73.35% 0.164 312.6)
XYZxyz(49.5901, 36.5771, 88.4349)
Luminance0.3658 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC87F2 #ADF287
analogous
#9787F2 #CC87F2 #F287E2
triadic
#CC87F2 #F2CC87 #87F2CC
tetradic
#CC87F2 #F29787 #ADF287 #87E2F2
square
#CC87F2 #F29787 #ADF287 #87E2F2
split-complementary
#CC87F2 #E2F287 #87F297
monochromatic
#9D19E6 #B550EC #CC87F2 #E3BEF8 #F3E3FC

Accessibility & contrast

On white

2.53
#CC87F2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.32
#CC87F2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC87F2
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC87F2#FFFFFF#000000##000000
##CC87F21.002.538.328.32
#FFFFFF2.531.0021.0021.00
#0000008.3221.001.001.00
##0000008.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#719FF6
Deuteranopia (green-blind)
#83A5EF
Tritanopia (blue-blind)
#C897B1
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #cc87f2;
/* rgb */ color: rgb(204, 135, 242);
/* oklch */ color: oklch(73.4% 0.164 312.6);
Tailwind
colors: {
  custom: {
    50: '#ddabf7',
    500: '#cc87f2',
    950: '#000000',
  },
}
SCSS
$custom: #cc87f2;
$custom-light: #ddabf7;
$custom-dark: #000000;
JSON
{
  "hex": "#cc87f2",
  "rgb": {
    "r": 204,
    "g": 135,
    "b": 242
  },
  "hsl": {
    "h": 278.692,
    "s": 80.451,
    "l": 73.922
  },
  "oklch": {
    "l": 0.73354,
    "c": 0.16439,
    "h": 312.6
  },
  "luminance": 0.36576
}

Semantic roles & 50–950 ramp

primary
#CC87F2
secondary
#E1F4D7
accent
#DD0954
background
#FDFAFF
surface
#FBF4FE
border
#D4CED6
text
#151017
muted
#837F85

Preview Lab

Preview with #CC87F2

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

Preview Lab → · Contrast checker → · Palette generator →

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