#CC81F6#CC81F6

#CC81F6 is a light, vivid violet. Relative luminance 0.352; OKLCH L 72.6% C 0.179 H 312.3°. Best body text is #000000 at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#CC81F6
RGBrgb(204, 129, 246)
HSLhsl(278, 87%, 74%)
HSVhsv(278, 48%, 96%)
CMYKcmyk(17.1%, 47.6%, 0%, 3.5%)
CIE-LABlab(65.90, 48.95, -47.44)
CIE-LCHlch(65.90, 68.16, 315.90°)
OKLaboklab(72.62% 0.1201 -0.1321)
OKLCHoklch(72.62% 0.179 312.3)
XYZxyz(49.3838, 35.1928, 91.3623)
Luminance0.3519 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC81F6 #ABF681
analogous
#9181F6 #CC81F6 #F681E5
triadic
#CC81F6 #F6CC81 #81F6CC
tetradic
#CC81F6 #F69181 #ABF681 #81E5F6
square
#CC81F6 #F69181 #ABF681 #81E5F6
split-complementary
#CC81F6 #E5F681 #81F691
monochromatic
#9D11EC #B548F2 #CC81F6 #E3BAFA #F3E2FD

Accessibility & contrast

On white

2.61
#CC81F6 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.04
#CC81F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC81F6
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC81F6#FFFFFF#000000##000000
##CC81F61.002.618.048.04
#FFFFFF2.611.0021.0021.00
#0000008.0421.001.001.00
##0000008.0421.001.001.00

Color blindness preview

Protanopia (red-blind)
#669CFA
Deuteranopia (green-blind)
#7CA2F3
Tritanopia (blue-blind)
#C893B0
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #cc81f6;
/* rgb */ color: rgb(204, 129, 246);
/* oklch */ color: oklch(72.6% 0.179 312.3);
Tailwind
colors: {
  custom: {
    50: '#dea7f9',
    500: '#cc81f6',
    950: '#000000',
  },
}
SCSS
$custom: #cc81f6;
$custom-light: #dea7f9;
$custom-dark: #000000;
JSON
{
  "hex": "#cc81f6",
  "rgb": {
    "r": 204,
    "g": 129,
    "b": 246
  },
  "hsl": {
    "h": 278.462,
    "s": 86.667,
    "l": 73.529
  },
  "oklch": {
    "l": 0.72624,
    "c": 0.17855,
    "h": 312.3
  },
  "luminance": 0.35192
}

Semantic roles & 50–950 ramp

primary
#CC81F6
secondary
#E1F5D6
accent
#E30253
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151017
muted
#837F85

Preview Lab

Preview with #CC81F6

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

Preview Lab → · Contrast checker → · Palette generator →

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