#CC97DC#CC97DC

#CC97DC is a light, moderate purple. Relative luminance 0.401; OKLCH L 75.0% C 0.112 H 318.2°. Best body text is #000000 at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#CC97DC
RGBrgb(204, 151, 220)
HSLhsl(286, 50%, 73%)
HSVhsv(286, 31%, 86%)
CMYKcmyk(7.3%, 31.4%, 0%, 13.7%)
CIE-LABlab(69.57, 31.77, -27.41)
CIE-LCHlch(69.57, 41.96, 319.22°)
OKLaboklab(75.02% 0.0837 -0.0748)
OKLCHoklch(75.02% 0.112 318.2)
XYZxyz(48.8849, 40.1390, 72.8687)
Luminance0.4014 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC97DC #A7DC97
analogous
#A997DC #CC97DC #DC97C9
triadic
#CC97DC #DCCC97 #97DCCC
tetradic
#CC97DC #DCA997 #A7DC97 #97C9DC
square
#CC97DC #DCA997 #A7DC97 #97C9DC
split-complementary
#CC97DC #C9DC97 #97DCA9
monochromatic
#9D3FBA #B669CD #CC97DC #E2C5EB #F4E8F7

Accessibility & contrast

On white

2.33
#CC97DC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.03
#CC97DC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC97DC
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC97DC#FFFFFF#000000##000000
##CC97DC1.002.339.039.03
#FFFFFF2.331.0021.0021.00
#0000009.0321.001.001.00
##0000009.0321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EA6DF
Deuteranopia (green-blind)
#9AACDA
Tritanopia (blue-blind)
#CC9FB0
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #cc97dc;
/* rgb */ color: rgb(204, 151, 220);
/* oklch */ color: oklch(75.0% 0.112 318.2);
Tailwind
colors: {
  custom: {
    50: '#dcb6e7',
    500: '#cc97dc',
    950: '#000000',
  },
}
SCSS
$custom: #cc97dc;
$custom-light: #dcb6e7;
$custom-dark: #000000;
JSON
{
  "hex": "#cc97dc",
  "rgb": {
    "r": 204,
    "g": 151,
    "b": 220
  },
  "hsl": {
    "h": 286.087,
    "s": 49.64,
    "l": 72.745
  },
  "oklch": {
    "l": 0.75025,
    "c": 0.11227,
    "h": 318.2
  },
  "luminance": 0.40138
}

Semantic roles & 50–950 ramp

primary
#CC97DC
secondary
#E1EEDD
accent
#BD294B
background
#FDFBFE
surface
#FBF6FC
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CC97DC

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

Preview Lab → · Contrast checker → · Palette generator →

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