#CC81F7#CC81F7

#CC81F7 is a light, vivid violet. Relative luminance 0.353; OKLCH L 72.7% C 0.180 H 312.0°. Best body text is #000000 at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#CC81F7
RGBrgb(204, 129, 247)
HSLhsl(278, 88%, 74%)
HSVhsv(278, 48%, 97%)
CMYKcmyk(17.4%, 47.8%, 0%, 3.1%)
CIE-LABlab(65.95, 49.16, -47.91)
CIE-LCHlch(65.95, 68.65, 315.74°)
OKLaboklab(72.68% 0.1203 -0.1335)
OKLCHoklch(72.68% 0.18 312)
XYZxyz(49.5377, 35.2543, 92.1728)
Luminance0.3525 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC81F7 #ACF781
analogous
#9181F7 #CC81F7 #F781E7
triadic
#CC81F7 #F7CC81 #81F7CC
tetradic
#CC81F7 #F79181 #ACF781 #81E7F7
square
#CC81F7 #F79181 #ACF781 #81E7F7
split-complementary
#CC81F7 #E7F781 #81F791
monochromatic
#9D0FEE #B547F3 #CC81F7 #E3BBFB #F3E2FD

Accessibility & contrast

On white

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

On black

8.05
#CC81F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC81F7
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC81F7#FFFFFF#000000##000000
##CC81F71.002.618.058.05
#FFFFFF2.611.0021.0021.00
#0000008.0521.001.001.00
##0000008.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#669CFB
Deuteranopia (green-blind)
#7BA2F4
Tritanopia (blue-blind)
#C894B1
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #cc81f7;
/* rgb */ color: rgb(204, 129, 247);
/* oklch */ color: oklch(72.7% 0.180 312.0);
Tailwind
colors: {
  custom: {
    50: '#dea7fa',
    500: '#cc81f7',
    950: '#000000',
  },
}
SCSS
$custom: #cc81f7;
$custom-light: #dea7fa;
$custom-dark: #000000;
JSON
{
  "hex": "#cc81f7",
  "rgb": {
    "r": 204,
    "g": 129,
    "b": 247
  },
  "hsl": {
    "h": 278.136,
    "s": 88.06,
    "l": 73.725
  },
  "oklch": {
    "l": 0.72675,
    "c": 0.17966,
    "h": 312
  },
  "luminance": 0.35253
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC81F7

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

Preview Lab → · Contrast checker → · Palette generator →

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