#CC81FC#CC81FC

#CC81FC is a light, vivid violet. Relative luminance 0.356; OKLCH L 72.9% C 0.185 H 310.7°. Best body text is #000000 at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#CC81FC
RGBrgb(204, 129, 252)
HSLhsl(277, 95%, 75%)
HSVhsv(277, 49%, 99%)
CMYKcmyk(19%, 48.8%, 0%, 1.2%)
CIE-LABlab(66.19, 50.23, -50.27)
CIE-LCHlch(66.19, 71.06, 314.98°)
OKLaboklab(72.93% 0.1208 -0.1403)
OKLCHoklch(72.93% 0.185 310.7)
XYZxyz(50.3196, 35.5671, 96.2909)
Luminance0.3557 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC81FC #B1FC81
analogous
#8E81FC #CC81FC #FC81EF
triadic
#CC81FC #FCCC81 #81FCCC
tetradic
#CC81FC #FC8E81 #B1FC81 #81EFFC
square
#CC81FC #FC8E81 #B1FC81 #81EFFC
split-complementary
#CC81FC #EFFC81 #81FC8E
monochromatic
#9C09F9 #B445FB #CC81FC #E4BDFD #F3E1FE

Accessibility & contrast

On white

2.59
#CC81FC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.11
#CC81FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC81FC
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC81FC#FFFFFF#000000##000000
##CC81FC1.002.598.118.11
#FFFFFF2.591.0021.0021.00
#0000008.1121.001.001.00
##0000008.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#639DFF
Deuteranopia (green-blind)
#78A2F9
Tritanopia (blue-blind)
#C695B3
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #cc81fc;
/* rgb */ color: rgb(204, 129, 252);
/* oklch */ color: oklch(72.9% 0.185 310.7);
Tailwind
colors: {
  custom: {
    50: '#dea7fe',
    500: '#cc81fc',
    950: '#000000',
  },
}
SCSS
$custom: #cc81fc;
$custom-light: #dea7fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cc81fc",
  "rgb": {
    "r": 204,
    "g": 129,
    "b": 252
  },
  "hsl": {
    "h": 276.585,
    "s": 95.349,
    "l": 74.706
  },
  "oklch": {
    "l": 0.72933,
    "c": 0.18518,
    "h": 310.7
  },
  "luminance": 0.35566
}

Semantic roles & 50–950 ramp

primary
#CC81FC
secondary
#E2F7D4
accent
#E6005A
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #CC81FC

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

Preview Lab → · Contrast checker → · Palette generator →

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