#CC87F6#CC87F6

#CC87F6 is a light, vivid violet. Relative luminance 0.368; OKLCH L 73.6% C 0.169 H 311.5°. Best body text is #000000 at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#CC87F6
RGBrgb(204, 135, 246)
HSLhsl(277, 86%, 75%)
HSVhsv(277, 45%, 96%)
CMYKcmyk(17.1%, 45.1%, 0%, 3.5%)
CIE-LABlab(67.14, 45.79, -45.48)
CIE-LCHlch(67.14, 64.53, 315.19°)
OKLaboklab(73.55% 0.112 -0.1265)
OKLCHoklch(73.55% 0.169 311.5)
XYZxyz(50.1974, 36.8201, 91.6335)
Luminance0.3682 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC87F6 #B1F687
analogous
#9487F6 #CC87F6 #F687E9
triadic
#CC87F6 #F6CC87 #87F6CC
tetradic
#CC87F6 #F69487 #B1F687 #87E9F6
square
#CC87F6 #F69487 #B1F687 #87E9F6
split-complementary
#CC87F6 #E9F687 #87F694
monochromatic
#9C15ED #B44EF2 #CC87F6 #E4C0FA #F3E3FD

Accessibility & contrast

On white

2.51
#CC87F6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.36
#CC87F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC87F6
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC87F6#FFFFFF#000000##000000
##CC87F61.002.518.368.36
#FFFFFF2.511.0021.0021.00
#0000008.3621.001.001.00
##0000008.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6FA0FA
Deuteranopia (green-blind)
#81A5F3
Tritanopia (blue-blind)
#C898B3
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #cc87f6;
/* rgb */ color: rgb(204, 135, 246);
/* oklch */ color: oklch(73.6% 0.169 311.5);
Tailwind
colors: {
  custom: {
    50: '#ddabf9',
    500: '#cc87f6',
    950: '#000000',
  },
}
SCSS
$custom: #cc87f6;
$custom-light: #ddabf9;
$custom-dark: #000000;
JSON
{
  "hex": "#cc87f6",
  "rgb": {
    "r": 204,
    "g": 135,
    "b": 246
  },
  "hsl": {
    "h": 277.297,
    "s": 86.047,
    "l": 74.706
  },
  "oklch": {
    "l": 0.73551,
    "c": 0.1689,
    "h": 311.5
  },
  "luminance": 0.36819
}

Semantic roles & 50–950 ramp

primary
#CC87F6
secondary
#E2F5D6
accent
#E30358
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CC87F6

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

Preview Lab → · Contrast checker → · Palette generator →

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