#CC87F9#CC87F9

#CC87F9 is a light, vivid violet. Relative luminance 0.370; OKLCH L 73.7% C 0.172 H 310.7°. Best body text is #000000 at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#CC87F9
RGBrgb(204, 135, 249)
HSLhsl(276, 90%, 75%)
HSVhsv(276, 46%, 98%)
CMYKcmyk(18.1%, 45.8%, 0%, 2.4%)
CIE-LABlab(67.28, 46.43, -46.90)
CIE-LCHlch(67.28, 66.00, 314.71°)
OKLaboklab(73.7% 0.1124 -0.1306)
OKLCHoklch(73.7% 0.172 310.7)
XYZxyz(50.6616, 37.0057, 94.0782)
Luminance0.3700 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC87F9 #B4F987
analogous
#9387F9 #CC87F9 #F987ED
triadic
#CC87F9 #F9CC87 #87F9CC
tetradic
#CC87F9 #F99387 #B4F987 #87EDF9
square
#CC87F9 #F99387 #B4F987 #87EDF9
split-complementary
#CC87F9 #EDF987 #87F993
monochromatic
#9A12F3 #B34DF6 #CC87F9 #E5C1FC #F3E2FE

Accessibility & contrast

On white

2.50
#CC87F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.40
#CC87F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC87F9
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC87F9#FFFFFF#000000##000000
##CC87F91.002.508.408.40
#FFFFFF2.501.0021.0021.00
#0000008.4021.001.001.00
##0000008.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6DA0FD
Deuteranopia (green-blind)
#80A5F6
Tritanopia (blue-blind)
#C799B4
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #cc87f9;
/* rgb */ color: rgb(204, 135, 249);
/* oklch */ color: oklch(73.7% 0.172 310.7);
Tailwind
colors: {
  custom: {
    50: '#ddabfb',
    500: '#cc87f9',
    950: '#000000',
  },
}
SCSS
$custom: #cc87f9;
$custom-light: #ddabfb;
$custom-dark: #000000;
JSON
{
  "hex": "#cc87f9",
  "rgb": {
    "r": 204,
    "g": 135,
    "b": 249
  },
  "hsl": {
    "h": 276.316,
    "s": 90.476,
    "l": 75.294
  },
  "oklch": {
    "l": 0.73701,
    "c": 0.17229,
    "h": 310.7
  },
  "luminance": 0.37005
}

Semantic roles & 50–950 ramp

primary
#CC87F9
secondary
#E2F6D5
accent
#E6005B
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CC87F9

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

Preview Lab → · Contrast checker → · Palette generator →

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