#CC97EA#CC97EA

#CC97EA is a light, vivid violet. Relative luminance 0.409; OKLCH L 75.6% C 0.128 H 312.7°. Best body text is #000000 at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#CC97EA
RGBrgb(204, 151, 234)
HSLhsl(278, 66%, 75%)
HSVhsv(278, 35%, 92%)
CMYKcmyk(12.8%, 35.5%, 0%, 8.2%)
CIE-LABlab(70.11, 34.63, -34.26)
CIE-LCHlch(70.11, 48.72, 315.31°)
OKLaboklab(75.62% 0.0872 -0.0943)
OKLCHoklch(75.62% 0.128 312.7)
XYZxyz(50.8173, 40.9120, 83.0457)
Luminance0.4091 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC97EA #B5EA97
analogous
#A297EA #CC97EA #EA97DF
triadic
#CC97EA #EACC97 #97EACC
tetradic
#CC97EA #EAA297 #B5EA97 #97DFEA
square
#CC97EA #EAA297 #B5EA97 #97DFEA
split-complementary
#CC97EA #DFEA97 #97EAA2
monochromatic
#9A31D5 #B364E0 #CC97EA #E5CAF4 #F3E6FA

Accessibility & contrast

On white

2.29
#CC97EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.18
#CC97EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC97EA
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC97EA#FFFFFF#000000##000000
##CC97EA1.002.299.189.18
#FFFFFF2.291.0021.0021.00
#0000009.1821.001.001.00
##0000009.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#89A8ED
Deuteranopia (green-blind)
#95ADE8
Tritanopia (blue-blind)
#C9A2B6
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #cc97ea;
/* rgb */ color: rgb(204, 151, 234);
/* oklch */ color: oklch(75.6% 0.128 312.7);
Tailwind
colors: {
  custom: {
    50: '#dcb6f1',
    500: '#cc97ea',
    950: '#000000',
  },
}
SCSS
$custom: #cc97ea;
$custom-light: #dcb6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#cc97ea",
  "rgb": {
    "r": 204,
    "g": 151,
    "b": 234
  },
  "hsl": {
    "h": 278.313,
    "s": 66.4,
    "l": 75.49
  },
  "oklch": {
    "l": 0.75619,
    "c": 0.12839,
    "h": 312.7
  },
  "luminance": 0.40911
}

Semantic roles & 50–950 ramp

primary
#CC97EA
secondary
#E2F1DA
accent
#CE1759
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CC97EA

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

Preview Lab → · Contrast checker → · Palette generator →

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