#CC81FA#CC81FA

#CC81FA is a light, vivid violet. Relative luminance 0.354; OKLCH L 72.8% C 0.183 H 311.2°. Best body text is #000000 at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#CC81FA
RGBrgb(204, 129, 250)
HSLhsl(277, 92%, 74%)
HSVhsv(277, 48%, 98%)
CMYKcmyk(18.4%, 48.4%, 0%, 2%)
CIE-LABlab(66.09, 49.80, -49.33)
CIE-LCHlch(66.09, 70.09, 315.27°)
OKLaboklab(72.83% 0.1206 -0.1376)
OKLCHoklch(72.83% 0.183 311.2)
XYZxyz(50.0043, 35.4410, 94.6306)
Luminance0.3544 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC81FA #AFFA81
analogous
#9081FA #CC81FA #FA81EC
triadic
#CC81FA #FACC81 #81FACC
tetradic
#CC81FA #FA9081 #AFFA81 #81ECFA
square
#CC81FA #FA9081 #AFFA81 #81ECFA
split-complementary
#CC81FA #ECFA81 #81FA90
monochromatic
#9C0BF5 #B446F8 #CC81FA #E4BCFC #F3E2FE

Accessibility & contrast

On white

2.60
#CC81FA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.09
#CC81FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC81FA
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC81FA#FFFFFF#000000##000000
##CC81FA1.002.608.098.09
#FFFFFF2.601.0021.0021.00
#0000008.0921.001.001.00
##0000008.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#649DFE
Deuteranopia (green-blind)
#79A2F7
Tritanopia (blue-blind)
#C794B2
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #cc81fa;
/* rgb */ color: rgb(204, 129, 250);
/* oklch */ color: oklch(72.8% 0.183 311.2);
Tailwind
colors: {
  custom: {
    50: '#dea7fc',
    500: '#cc81fa',
    950: '#000000',
  },
}
SCSS
$custom: #cc81fa;
$custom-light: #dea7fc;
$custom-dark: #000000;
JSON
{
  "hex": "#cc81fa",
  "rgb": {
    "r": 204,
    "g": 129,
    "b": 250
  },
  "hsl": {
    "h": 277.19,
    "s": 92.366,
    "l": 74.314
  },
  "oklch": {
    "l": 0.72829,
    "c": 0.18296,
    "h": 311.2
  },
  "luminance": 0.3544
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC81FA

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

Preview Lab → · Contrast checker → · Palette generator →

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