#CC87F0#CC87F0

#CC87F0 is a light, vivid violet. Relative luminance 0.365; OKLCH L 73.3% C 0.162 H 313.2°. Best body text is #000000 at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#CC87F0
RGBrgb(204, 135, 240)
HSLhsl(279, 78%, 74%)
HSVhsv(279, 44%, 94%)
CMYKcmyk(15%, 43.8%, 0%, 5.9%)
CIE-LABlab(66.87, 44.52, -42.61)
CIE-LCHlch(66.87, 61.63, 316.25°)
OKLaboklab(73.26% 0.111 -0.1182)
OKLCHoklch(73.26% 0.162 313.2)
XYZxyz(49.2914, 36.4577, 86.8616)
Luminance0.3646 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC87F0 #ABF087
analogous
#9787F0 #CC87F0 #F087DF
triadic
#CC87F0 #F0CC87 #87F0CC
tetradic
#CC87F0 #F09787 #ABF087 #87DFF0
square
#CC87F0 #F09787 #ABF087 #87DFF0
split-complementary
#CC87F0 #DFF087 #87F097
monochromatic
#9D1CE1 #B551E9 #CC87F0 #E3BDF7 #F3E4FC

Accessibility & contrast

On white

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

On black

8.29
#CC87F0 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC87F0
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC87F0#FFFFFF#000000##000000
##CC87F01.002.538.298.29
#FFFFFF2.531.0021.0021.00
#0000008.2921.001.001.00
##0000008.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#729FF4
Deuteranopia (green-blind)
#84A4ED
Tritanopia (blue-blind)
#C996B0
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #cc87f0;
/* rgb */ color: rgb(204, 135, 240);
/* oklch */ color: oklch(73.3% 0.162 313.2);
Tailwind
colors: {
  custom: {
    50: '#ddabf5',
    500: '#cc87f0',
    950: '#000000',
  },
}
SCSS
$custom: #cc87f0;
$custom-light: #ddabf5;
$custom-dark: #000000;
JSON
{
  "hex": "#cc87f0",
  "rgb": {
    "r": 204,
    "g": 135,
    "b": 240
  },
  "hsl": {
    "h": 279.429,
    "s": 77.778,
    "l": 73.529
  },
  "oklch": {
    "l": 0.73257,
    "c": 0.16215,
    "h": 313.2
  },
  "luminance": 0.36457
}

Semantic roles & 50–950 ramp

primary
#CC87F0
secondary
#E1F3D8
accent
#DA0B52
background
#FDFAFF
surface
#FBF4FE
border
#D4CED6
text
#151017
muted
#837F85

Preview Lab

Preview with #CC87F0

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

Preview Lab → · Contrast checker → · Palette generator →

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