#CC81FB#CC81FB

#CC81FB is a light, vivid violet. Relative luminance 0.355; OKLCH L 72.9% C 0.184 H 311.0°. Best body text is #000000 at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#CC81FB
RGBrgb(204, 129, 251)
HSLhsl(277, 94%, 75%)
HSVhsv(277, 49%, 98%)
CMYKcmyk(18.7%, 48.6%, 0%, 1.6%)
CIE-LABlab(66.14, 50.01, -49.80)
CIE-LCHlch(66.14, 70.58, 315.12°)
OKLaboklab(72.88% 0.1207 -0.139)
OKLCHoklch(72.88% 0.184 311)
XYZxyz(50.1615, 35.5039, 95.4585)
Luminance0.3550 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC81FB #B0FB81
analogous
#8F81FB #CC81FB #FB81ED
triadic
#CC81FB #FBCC81 #81FBCC
tetradic
#CC81FB #FB8F81 #B0FB81 #81EDFB
square
#CC81FB #FB8F81 #B0FB81 #81EDFB
split-complementary
#CC81FB #EDFB81 #81FB8F
monochromatic
#9C0AF7 #B446F9 #CC81FB #E4BCFD #F3E1FE

Accessibility & contrast

On white

2.59
#CC81FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.10
#CC81FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC81FB
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC81FB#FFFFFF#000000##000000
##CC81FB1.002.598.108.10
#FFFFFF2.591.0021.0021.00
#0000008.1021.001.001.00
##0000008.1021.001.001.00

Color blindness preview

Protanopia (red-blind)
#639DFF
Deuteranopia (green-blind)
#79A2F8
Tritanopia (blue-blind)
#C795B2
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #cc81fb;
/* rgb */ color: rgb(204, 129, 251);
/* oklch */ color: oklch(72.9% 0.184 311.0);
Tailwind
colors: {
  custom: {
    50: '#dea7fd',
    500: '#cc81fb',
    950: '#000000',
  },
}
SCSS
$custom: #cc81fb;
$custom-light: #dea7fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cc81fb",
  "rgb": {
    "r": 204,
    "g": 129,
    "b": 251
  },
  "hsl": {
    "h": 276.885,
    "s": 93.846,
    "l": 74.51
  },
  "oklch": {
    "l": 0.72881,
    "c": 0.18407,
    "h": 311
  },
  "luminance": 0.35503
}

Semantic roles & 50–950 ramp

primary
#CC81FB
secondary
#E2F6D5
accent
#E60058
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#151018
muted
#837F86

Preview Lab

Preview with #CC81FB

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

Preview Lab → · Contrast checker → · Palette generator →

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