#CC97EE#CC97EE

#CC97EE is a light, vivid violet. Relative luminance 0.411; OKLCH L 75.8% C 0.133 H 311.4°. Best body text is #000000 at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#CC97EE
RGBrgb(204, 151, 238)
HSLhsl(277, 72%, 76%)
HSVhsv(277, 37%, 93%)
CMYKcmyk(14.3%, 36.6%, 0%, 6.7%)
CIE-LABlab(70.28, 35.47, -36.20)
CIE-LCHlch(70.28, 50.68, 314.42°)
OKLaboklab(75.8% 0.0881 -0.0998)
OKLCHoklch(75.8% 0.133 311.4)
XYZxyz(51.3984, 41.1444, 86.1064)
Luminance0.4114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC97EE #B9EE97
analogous
#A197EE #CC97EE #EE97E5
triadic
#CC97EE #EECC97 #97EECC
tetradic
#CC97EE #EEA197 #B9EE97 #97E5EE
square
#CC97EE #EEA197 #B9EE97 #97E5EE
split-complementary
#CC97EE #E5EE97 #97EEA1
monochromatic
#982EDD #B262E5 #CC97EE #E6CCF7 #F2E5FB

Accessibility & contrast

On white

2.28
#CC97EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.23
#CC97EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC97EE
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC97EE#FFFFFF#000000##000000
##CC97EE1.002.289.239.23
#FFFFFF2.281.0021.0021.00
#0000009.2321.001.001.00
##0000009.2321.001.001.00

Color blindness preview

Protanopia (red-blind)
#87A9F1
Deuteranopia (green-blind)
#93ADEB
Tritanopia (blue-blind)
#C9A3B8
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cc97ee;
/* rgb */ color: rgb(204, 151, 238);
/* oklch */ color: oklch(75.8% 0.133 311.4);
Tailwind
colors: {
  custom: {
    50: '#dcb6f4',
    500: '#cc97ee',
    950: '#000000',
  },
}
SCSS
$custom: #cc97ee;
$custom-light: #dcb6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#cc97ee",
  "rgb": {
    "r": 204,
    "g": 151,
    "b": 238
  },
  "hsl": {
    "h": 276.552,
    "s": 71.901,
    "l": 76.275
  },
  "oklch": {
    "l": 0.75796,
    "c": 0.1331,
    "h": 311.4
  },
  "luminance": 0.41144
}

Semantic roles & 50–950 ramp

primary
#CC97EE
secondary
#E3F2D9
accent
#D4125E
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CC97EE

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

Preview Lab → · Contrast checker → · Palette generator →

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