#CC87F3#CC87F3

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

Color values

HEX#CC87F3
RGBrgb(204, 135, 243)
HSLhsl(278, 82%, 74%)
HSVhsv(278, 44%, 95%)
CMYKcmyk(16%, 44.4%, 0%, 4.7%)
CIE-LABlab(67.00, 45.15, -44.05)
CIE-LCHlch(67.00, 63.08, 315.71°)
OKLaboklab(73.4% 0.1115 -0.1223)
OKLCHoklch(73.4% 0.166 312.4)
XYZxyz(49.7407, 36.6374, 89.2281)
Luminance0.3664 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC87F3 #AEF387
analogous
#9687F3 #CC87F3 #F387E4
triadic
#CC87F3 #F3CC87 #87F3CC
tetradic
#CC87F3 #F39687 #AEF387 #87E4F3
square
#CC87F3 #F39687 #AEF387 #87E4F3
split-complementary
#CC87F3 #E4F387 #87F396
monochromatic
#9D18E8 #B44FED #CC87F3 #E4BFF9 #F3E3FC

Accessibility & contrast

On white

2.52
#CC87F3 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.33
#CC87F3 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC87F3
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC87F3#FFFFFF#000000##000000
##CC87F31.002.528.338.33
#FFFFFF2.521.0021.0021.00
#0000008.3321.001.001.00
##0000008.3321.001.001.00

Color blindness preview

Protanopia (red-blind)
#709FF7
Deuteranopia (green-blind)
#83A5F0
Tritanopia (blue-blind)
#C897B2
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #cc87f3;
/* rgb */ color: rgb(204, 135, 243);
/* oklch */ color: oklch(73.4% 0.166 312.4);
Tailwind
colors: {
  custom: {
    50: '#ddabf7',
    500: '#cc87f3',
    950: '#000000',
  },
}
SCSS
$custom: #cc87f3;
$custom-light: #ddabf7;
$custom-dark: #000000;
JSON
{
  "hex": "#cc87f3",
  "rgb": {
    "r": 204,
    "g": 135,
    "b": 243
  },
  "hsl": {
    "h": 278.333,
    "s": 81.818,
    "l": 74.118
  },
  "oklch": {
    "l": 0.73403,
    "c": 0.16551,
    "h": 312.4
  },
  "luminance": 0.36636
}

Semantic roles & 50–950 ramp

primary
#CC87F3
secondary
#E1F4D7
accent
#DE0755
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CC87F3

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

Preview Lab → · Contrast checker → · Palette generator →

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