#CC87FB#CC87FB

#CC87FB is a light, vivid violet. Relative luminance 0.371; OKLCH L 73.8% C 0.175 H 310.2°. Best body text is #000000 at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#CC87FB
RGBrgb(204, 135, 251)
HSLhsl(276, 94%, 76%)
HSVhsv(276, 46%, 98%)
CMYKcmyk(18.7%, 46.2%, 0%, 1.6%)
CIE-LABlab(67.38, 46.86, -47.85)
CIE-LCHlch(67.38, 66.97, 314.40°)
OKLaboklab(73.8% 0.1127 -0.1333)
OKLCHoklch(73.8% 0.175 310.2)
XYZxyz(50.9752, 37.1312, 95.7298)
Luminance0.3713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC87FB #B6FB87
analogous
#9287FB #CC87FB #FB87F0
triadic
#CC87FB #FBCC87 #87FBCC
tetradic
#CC87FB #FB9287 #B6FB87 #87F0FB
square
#CC87FB #FB9287 #B6FB87 #87F0FB
split-complementary
#CC87FB #F0FB87 #87FB92
monochromatic
#9A11F7 #B34CF9 #CC87FB #E5C2FD #F2E1FE

Accessibility & contrast

On white

2.49
#CC87FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.43
#CC87FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC87FB
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC87FB#FFFFFF#000000##000000
##CC87FB1.002.498.438.43
#FFFFFF2.491.0021.0021.00
#0000008.4321.001.001.00
##0000008.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#6CA1FF
Deuteranopia (green-blind)
#7EA5F8
Tritanopia (blue-blind)
#C699B5
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #cc87fb;
/* rgb */ color: rgb(204, 135, 251);
/* oklch */ color: oklch(73.8% 0.175 310.2);
Tailwind
colors: {
  custom: {
    50: '#ddabfd',
    500: '#cc87fb',
    950: '#000000',
  },
}
SCSS
$custom: #cc87fb;
$custom-light: #ddabfd;
$custom-dark: #000000;
JSON
{
  "hex": "#cc87fb",
  "rgb": {
    "r": 204,
    "g": 135,
    "b": 251
  },
  "hsl": {
    "h": 275.69,
    "s": 93.548,
    "l": 75.686
  },
  "oklch": {
    "l": 0.73802,
    "c": 0.17455,
    "h": 310.2
  },
  "luminance": 0.3713
}

Semantic roles & 50–950 ramp

primary
#CC87FB
secondary
#E2F6D5
accent
#E6005D
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CC87FB

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

Preview Lab → · Contrast checker → · Palette generator →

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