#CC81EF#CC81EF

#CC81EF is a light, vivid purple. Relative luminance 0.348; OKLCH L 72.3% C 0.171 H 314.2°. Best body text is #000000 at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#CC81EF
RGBrgb(204, 129, 239)
HSLhsl(281, 77%, 72%)
HSVhsv(281, 46%, 94%)
CMYKcmyk(14.6%, 46%, 0%, 6.3%)
CIE-LABlab(65.57, 47.49, -44.10)
CIE-LCHlch(65.57, 64.81, 317.12°)
OKLaboklab(72.27% 0.1192 -0.1224)
OKLCHoklch(72.27% 0.171 314.2)
XYZxyz(48.3296, 34.7711, 85.8102)
Luminance0.3477 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC81EF #A4EF81
analogous
#9581EF #CC81EF #EF81DB
triadic
#CC81EF #EFCC81 #81EFCC
tetradic
#CC81EF #EF9581 #A4EF81 #81DBEF
square
#CC81EF #EF9581 #A4EF81 #81DBEF
split-complementary
#CC81EF #DBEF81 #81EF95
monochromatic
#9D1CDA #B64BE8 #CC81EF #E2B7F6 #F4E4FC

Accessibility & contrast

On white

2.64
#CC81EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.95
#CC81EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC81EF
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC81EF#FFFFFF#000000##000000
##CC81EF1.002.647.957.95
#FFFFFF2.641.0021.0021.00
#0000007.9521.001.001.00
##0000007.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6B9BF3
Deuteranopia (green-blind)
#7FA1EC
Tritanopia (blue-blind)
#C991AD
Achromatopsia (no color)
#9F9F9F

Design tokens & code

CSS
--color: #cc81ef;
/* rgb */ color: rgb(204, 129, 239);
/* oklch */ color: oklch(72.3% 0.171 314.2);
Tailwind
colors: {
  custom: {
    50: '#dda7f4',
    500: '#cc81ef',
    950: '#000000',
  },
}
SCSS
$custom: #cc81ef;
$custom-light: #dda7f4;
$custom-dark: #000000;
JSON
{
  "hex": "#cc81ef",
  "rgb": {
    "r": 204,
    "g": 129,
    "b": 239
  },
  "hsl": {
    "h": 280.909,
    "s": 77.465,
    "l": 72.157
  },
  "oklch": {
    "l": 0.72272,
    "c": 0.17087,
    "h": 314.2
  },
  "luminance": 0.3477
}

Semantic roles & 50–950 ramp

primary
#CC81EF
secondary
#E0F3D8
accent
#DA0C4D
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#151017
muted
#837F85

Preview Lab

Preview with #CC81EF

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

Preview Lab → · Contrast checker → · Palette generator →

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