#CC87F1#CC87F1

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

Color values

HEX#CC87F1
RGBrgb(204, 135, 241)
HSLhsl(279, 79%, 74%)
HSVhsv(279, 44%, 95%)
CMYKcmyk(15.4%, 44%, 0%, 5.5%)
CIE-LABlab(66.91, 44.73, -43.09)
CIE-LCHlch(66.91, 62.11, 316.07°)
OKLaboklab(73.3% 0.1112 -0.1196)
OKLCHoklch(73.3% 0.163 312.9)
XYZxyz(49.4403, 36.5172, 87.6461)
Luminance0.3652 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC87F1 #ACF187
analogous
#9787F1 #CC87F1 #F187E1
triadic
#CC87F1 #F1CC87 #87F1CC
tetradic
#CC87F1 #F19787 #ACF187 #87E1F1
square
#CC87F1 #F19787 #ACF187 #87E1F1
split-complementary
#CC87F1 #E1F187 #87F197
monochromatic
#9D1AE3 #B550EB #CC87F1 #E3BEF7 #F3E4FC

Accessibility & contrast

On white

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

On black

8.30
#CC87F1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC87F1
8.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC87F1#FFFFFF#000000##000000
##CC87F11.002.538.308.30
#FFFFFF2.531.0021.0021.00
#0000008.3021.001.001.00
##0000008.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#729FF5
Deuteranopia (green-blind)
#84A5EE
Tritanopia (blue-blind)
#C997B1
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #cc87f1;
/* rgb */ color: rgb(204, 135, 241);
/* oklch */ color: oklch(73.3% 0.163 312.9);
Tailwind
colors: {
  custom: {
    50: '#ddabf6',
    500: '#cc87f1',
    950: '#000000',
  },
}
SCSS
$custom: #cc87f1;
$custom-light: #ddabf6;
$custom-dark: #000000;
JSON
{
  "hex": "#cc87f1",
  "rgb": {
    "r": 204,
    "g": 135,
    "b": 241
  },
  "hsl": {
    "h": 279.057,
    "s": 79.104,
    "l": 73.725
  },
  "oklch": {
    "l": 0.73305,
    "c": 0.16327,
    "h": 312.9
  },
  "luminance": 0.36516
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC87F1

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

Preview Lab → · Contrast checker → · Palette generator →

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