#CC87F4#CC87F4

#CC87F4 is a light, vivid violet. Relative luminance 0.367; OKLCH L 73.5% C 0.167 H 312.1°. Best body text is #000000 at 8.34:1 contrast (WCAG AA passes).

Color values

HEX#CC87F4
RGBrgb(204, 135, 244)
HSLhsl(278, 83%, 74%)
HSVhsv(278, 45%, 96%)
CMYKcmyk(16.4%, 44.7%, 0%, 4.3%)
CIE-LABlab(67.05, 45.36, -44.53)
CIE-LCHlch(67.05, 63.56, 315.53°)
OKLaboklab(73.45% 0.1117 -0.1237)
OKLCHoklch(73.45% 0.167 312.1)
XYZxyz(49.8921, 36.6980, 90.0256)
Luminance0.3670 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC87F4 #AFF487
analogous
#9687F4 #CC87F4 #F487E5
triadic
#CC87F4 #F4CC87 #87F4CC
tetradic
#CC87F4 #F49687 #AFF487 #87E5F4
square
#CC87F4 #F49687 #AFF487 #87E5F4
split-complementary
#CC87F4 #E5F487 #87F496
monochromatic
#9C17EA #B44FEF #CC87F4 #E4BFF9 #F3E3FC

Accessibility & contrast

On white

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

On black

8.34
#CC87F4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC87F4
8.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC87F4#FFFFFF#000000##000000
##CC87F41.002.528.348.34
#FFFFFF2.521.0021.0021.00
#0000008.3421.001.001.00
##0000008.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#70A0F8
Deuteranopia (green-blind)
#82A5F1
Tritanopia (blue-blind)
#C897B2
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #cc87f4;
/* rgb */ color: rgb(204, 135, 244);
/* oklch */ color: oklch(73.5% 0.167 312.1);
Tailwind
colors: {
  custom: {
    50: '#ddabf8',
    500: '#cc87f4',
    950: '#000000',
  },
}
SCSS
$custom: #cc87f4;
$custom-light: #ddabf8;
$custom-dark: #000000;
JSON
{
  "hex": "#cc87f4",
  "rgb": {
    "r": 204,
    "g": 135,
    "b": 244
  },
  "hsl": {
    "h": 277.982,
    "s": 83.206,
    "l": 74.314
  },
  "oklch": {
    "l": 0.73452,
    "c": 0.16664,
    "h": 312.1
  },
  "luminance": 0.36697
}

Semantic roles & 50–950 ramp

primary
#CC87F4
secondary
#E2F4D7
accent
#E00656
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CC87F4

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

Preview Lab → · Contrast checker → · Palette generator →

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