#CC87F8#CC87F8

#CC87F8 is a light, vivid violet. Relative luminance 0.369; OKLCH L 73.7% C 0.171 H 311.0°. Best body text is #000000 at 8.39:1 contrast (WCAG AA passes).

Color values

HEX#CC87F8
RGBrgb(204, 135, 248)
HSLhsl(277, 89%, 75%)
HSVhsv(277, 46%, 97%)
CMYKcmyk(17.7%, 45.6%, 0%, 2.7%)
CIE-LABlab(67.23, 46.21, -46.43)
CIE-LCHlch(67.23, 65.51, 314.87°)
OKLaboklab(73.65% 0.1123 -0.1292)
OKLCHoklch(73.65% 0.171 311)
XYZxyz(50.5060, 36.9435, 93.2589)
Luminance0.3694 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC87F8 #B3F887
analogous
#9387F8 #CC87F8 #F887EC
triadic
#CC87F8 #F8CC87 #87F8CC
tetradic
#CC87F8 #F89387 #B3F887 #87ECF8
square
#CC87F8 #F89387 #B3F887 #87ECF8
split-complementary
#CC87F8 #ECF887 #87F893
monochromatic
#9B13F1 #B34DF5 #CC87F8 #E5C1FB #F3E2FD

Accessibility & contrast

On white

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

On black

8.39
#CC87F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC87F8
8.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC87F8#FFFFFF#000000##000000
##CC87F81.002.508.398.39
#FFFFFF2.501.0021.0021.00
#0000008.3921.001.001.00
##0000008.3921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cc87f8;
/* rgb */ color: rgb(204, 135, 248);
/* oklch */ color: oklch(73.7% 0.171 311.0);
Tailwind
colors: {
  custom: {
    50: '#ddabfb',
    500: '#cc87f8',
    950: '#000000',
  },
}
SCSS
$custom: #cc87f8;
$custom-light: #ddabfb;
$custom-dark: #000000;
JSON
{
  "hex": "#cc87f8",
  "rgb": {
    "r": 204,
    "g": 135,
    "b": 248
  },
  "hsl": {
    "h": 276.637,
    "s": 88.976,
    "l": 75.098
  },
  "oklch": {
    "l": 0.73651,
    "c": 0.17116,
    "h": 311
  },
  "luminance": 0.36943
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC87F8

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

Preview Lab → · Contrast checker → · Palette generator →

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