#CC87F5#CC87F5

#CC87F5 is a light, vivid violet. Relative luminance 0.368; OKLCH L 73.5% C 0.168 H 311.8°. Best body text is #000000 at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#CC87F5
RGBrgb(204, 135, 245)
HSLhsl(278, 85%, 75%)
HSVhsv(278, 45%, 96%)
CMYKcmyk(16.7%, 44.9%, 0%, 3.9%)
CIE-LABlab(67.10, 45.58, -45.00)
CIE-LCHlch(67.10, 64.05, 315.36°)
OKLaboklab(73.5% 0.1118 -0.1251)
OKLCHoklch(73.5% 0.168 311.8)
XYZxyz(50.0444, 36.7588, 90.8274)
Luminance0.3676 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC87F5 #B0F587
analogous
#9587F5 #CC87F5 #F587E7
triadic
#CC87F5 #F5CC87 #87F5CC
tetradic
#CC87F5 #F59587 #B0F587 #87E7F5
square
#CC87F5 #F59587 #B0F587 #87E7F5
split-complementary
#CC87F5 #E7F587 #87F595
monochromatic
#9C16EC #B44FF0 #CC87F5 #E4BFFA #F3E3FD

Accessibility & contrast

On white

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

On black

8.35
#CC87F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC87F5
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC87F5#FFFFFF#000000##000000
##CC87F51.002.518.358.35
#FFFFFF2.511.0021.0021.00
#0000008.3521.001.001.00
##0000008.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6FA0F9
Deuteranopia (green-blind)
#82A5F2
Tritanopia (blue-blind)
#C898B2
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #cc87f5;
/* rgb */ color: rgb(204, 135, 245);
/* oklch */ color: oklch(73.5% 0.168 311.8);
Tailwind
colors: {
  custom: {
    50: '#ddabf9',
    500: '#cc87f5',
    950: '#000000',
  },
}
SCSS
$custom: #cc87f5;
$custom-light: #ddabf9;
$custom-dark: #000000;
JSON
{
  "hex": "#cc87f5",
  "rgb": {
    "r": 204,
    "g": 135,
    "b": 245
  },
  "hsl": {
    "h": 277.636,
    "s": 84.615,
    "l": 74.51
  },
  "oklch": {
    "l": 0.73502,
    "c": 0.16777,
    "h": 311.8
  },
  "luminance": 0.36758
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC87F5

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

Preview Lab → · Contrast checker → · Palette generator →

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