#CC87F7#CC87F7

#CC87F7 is a light, vivid violet. Relative luminance 0.369; OKLCH L 73.6% C 0.170 H 311.2°. Best body text is #000000 at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#CC87F7
RGBrgb(204, 135, 247)
HSLhsl(277, 88%, 75%)
HSVhsv(277, 45%, 97%)
CMYKcmyk(17.4%, 45.3%, 0%, 3.1%)
CIE-LABlab(67.19, 46.00, -45.95)
CIE-LCHlch(67.19, 65.02, 315.03°)
OKLaboklab(73.6% 0.1121 -0.1278)
OKLCHoklch(73.6% 0.17 311.2)
XYZxyz(50.3513, 36.8816, 92.4440)
Luminance0.3688 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC87F7 #B2F787
analogous
#9487F7 #CC87F7 #F787EA
triadic
#CC87F7 #F7CC87 #87F7CC
tetradic
#CC87F7 #F79487 #B2F787 #87EAF7
square
#CC87F7 #F79487 #B2F787 #87EAF7
split-complementary
#CC87F7 #EAF787 #87F794
monochromatic
#9B14EF #B44EF3 #CC87F7 #E4C0FB #F3E2FD

Accessibility & contrast

On white

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

On black

8.38
#CC87F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC87F7
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC87F7#FFFFFF#000000##000000
##CC87F71.002.518.388.38
#FFFFFF2.511.0021.0021.00
#0000008.3821.001.001.00
##0000008.3821.001.001.00

Color blindness preview

Protanopia (red-blind)
#6EA0FB
Deuteranopia (green-blind)
#81A5F4
Tritanopia (blue-blind)
#C798B3
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #cc87f7;
/* rgb */ color: rgb(204, 135, 247);
/* oklch */ color: oklch(73.6% 0.170 311.2);
Tailwind
colors: {
  custom: {
    50: '#ddabfa',
    500: '#cc87f7',
    950: '#000000',
  },
}
SCSS
$custom: #cc87f7;
$custom-light: #ddabfa;
$custom-dark: #000000;
JSON
{
  "hex": "#cc87f7",
  "rgb": {
    "r": 204,
    "g": 135,
    "b": 247
  },
  "hsl": {
    "h": 276.964,
    "s": 87.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.73601,
    "c": 0.17003,
    "h": 311.2
  },
  "luminance": 0.36881
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC87F7

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

Preview Lab → · Contrast checker → · Palette generator →

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