#CC81FE#CC81FE

#CC81FE is a light, vivid violet. Relative luminance 0.357; OKLCH L 73.0% C 0.187 H 310.2°. Best body text is #000000 at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#CC81FE
RGBrgb(204, 129, 254)
HSLhsl(276, 98%, 75%)
HSVhsv(276, 49%, 100%)
CMYKcmyk(19.7%, 49.2%, 0%, 0.4%)
CIE-LABlab(66.29, 50.66, -51.21)
CIE-LCHlch(66.29, 72.03, 314.69°)
OKLaboklab(73.04% 0.121 -0.1431)
OKLCHoklch(73.04% 0.187 310.2)
XYZxyz(50.6382, 35.6945, 97.9688)
Luminance0.3569 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC81FE #B3FE81
analogous
#8D81FE #CC81FE #FE81F1
triadic
#CC81FE #FECC81 #81FECC
tetradic
#CC81FE #FE8D81 #B3FE81 #81F1FE
square
#CC81FE #FE8D81 #B3FE81 #81F1FE
split-complementary
#CC81FE #F1FE81 #81FE8D
monochromatic
#9B08FD #B344FE #CC81FE #E5BEFE #F3E1FF

Accessibility & contrast

On white

2.58
#CC81FE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.14
#CC81FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC81FE
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC81FE#FFFFFF#000000##000000
##CC81FE1.002.588.148.14
#FFFFFF2.581.0021.0021.00
#0000008.1421.001.001.00
##0000008.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#619EFF
Deuteranopia (green-blind)
#77A2FB
Tritanopia (blue-blind)
#C696B4
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #cc81fe;
/* rgb */ color: rgb(204, 129, 254);
/* oklch */ color: oklch(73.0% 0.187 310.2);
Tailwind
colors: {
  custom: {
    50: '#dea7ff',
    500: '#cc81fe',
    950: '#000000',
  },
}
SCSS
$custom: #cc81fe;
$custom-light: #dea7ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cc81fe",
  "rgb": {
    "r": 204,
    "g": 129,
    "b": 254
  },
  "hsl": {
    "h": 276,
    "s": 98.425,
    "l": 75.098
  },
  "oklch": {
    "l": 0.73038,
    "c": 0.1874,
    "h": 310.2
  },
  "luminance": 0.35694
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC81FE

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

Preview Lab → · Contrast checker → · Palette generator →

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