#CC97DF#CC97DF

#CC97DF is a light, moderate purple. Relative luminance 0.403; OKLCH L 75.1% C 0.116 H 316.9°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#CC97DF
RGBrgb(204, 151, 223)
HSLhsl(284, 53%, 73%)
HSVhsv(284, 32%, 87%)
CMYKcmyk(8.5%, 32.3%, 0%, 12.5%)
CIE-LABlab(69.68, 32.38, -28.89)
CIE-LCHlch(69.68, 43.39, 318.26°)
OKLaboklab(75.15% 0.0845 -0.079)
OKLCHoklch(75.15% 0.116 316.9)
XYZxyz(49.2858, 40.2994, 74.9800)
Luminance0.4030 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC97DF #AADF97
analogous
#A897DF #CC97DF #DF97CE
triadic
#CC97DF #DFCC97 #97DFCC
tetradic
#CC97DF #DFA897 #AADF97 #97CEDF
square
#CC97DF #DFA897 #AADF97 #97CEDF
split-complementary
#CC97DF #CEDF97 #97DFA8
monochromatic
#9D3BC0 #B568D1 #CC97DF #E3C6ED #F4E8F8

Accessibility & contrast

On white

2.32
#CC97DF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.06
#CC97DF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC97DF
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC97DF#FFFFFF#000000##000000
##CC97DF1.002.329.069.06
#FFFFFF2.321.0021.0021.00
#0000009.0621.001.001.00
##0000009.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8DA7E2
Deuteranopia (green-blind)
#99ACDD
Tritanopia (blue-blind)
#CCA0B1
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #cc97df;
/* rgb */ color: rgb(204, 151, 223);
/* oklch */ color: oklch(75.1% 0.116 316.9);
Tailwind
colors: {
  custom: {
    50: '#dcb6e9',
    500: '#cc97df',
    950: '#000000',
  },
}
SCSS
$custom: #cc97df;
$custom-light: #dcb6e9;
$custom-dark: #000000;
JSON
{
  "hex": "#cc97df",
  "rgb": {
    "r": 204,
    "g": 151,
    "b": 223
  },
  "hsl": {
    "h": 284.167,
    "s": 52.941,
    "l": 73.333
  },
  "oklch": {
    "l": 0.75149,
    "c": 0.11566,
    "h": 316.9
  },
  "luminance": 0.40298
}

Semantic roles & 50–950 ramp

primary
#CC97DF
secondary
#E1EFDC
accent
#C0254E
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CC97DF

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

Preview Lab → · Contrast checker → · Palette generator →

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