#CC97E2#CC97E2

#CC97E2 is a light, moderate purple. Relative luminance 0.405; OKLCH L 75.3% C 0.119 H 315.7°. Best body text is #000000 at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#CC97E2
RGBrgb(204, 151, 226)
HSLhsl(282, 56%, 74%)
HSVhsv(282, 33%, 89%)
CMYKcmyk(9.7%, 33.2%, 0%, 11.4%)
CIE-LABlab(69.80, 32.98, -30.36)
CIE-LCHlch(69.80, 44.83, 317.37°)
OKLaboklab(75.28% 0.0852 -0.0832)
OKLCHoklch(75.28% 0.119 315.7)
XYZxyz(49.6938, 40.4626, 77.1290)
Luminance0.4046 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC97E2 #ADE297
analogous
#A797E2 #CC97E2 #E297D3
triadic
#CC97E2 #E2CC97 #97E2CC
tetradic
#CC97E2 #E2A797 #ADE297 #97D3E2
square
#CC97E2 #E2A797 #ADE297 #97D3E2
split-complementary
#CC97E2 #D3E297 #97E2A7
monochromatic
#9D38C7 #B567D5 #CC97E2 #E3C7EF #F3E7F8

Accessibility & contrast

On white

2.31
#CC97E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.09
#CC97E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC97E2
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC97E2#FFFFFF#000000##000000
##CC97E21.002.319.099.09
#FFFFFF2.311.0021.0021.00
#0000009.0921.001.001.00
##0000009.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CA7E5
Deuteranopia (green-blind)
#98ACE0
Tritanopia (blue-blind)
#CBA0B2
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #cc97e2;
/* rgb */ color: rgb(204, 151, 226);
/* oklch */ color: oklch(75.3% 0.119 315.7);
Tailwind
colors: {
  custom: {
    50: '#dcb6eb',
    500: '#cc97e2',
    950: '#000000',
  },
}
SCSS
$custom: #cc97e2;
$custom-light: #dcb6eb;
$custom-dark: #000000;
JSON
{
  "hex": "#cc97e2",
  "rgb": {
    "r": 204,
    "g": 151,
    "b": 226
  },
  "hsl": {
    "h": 282.4,
    "s": 56.391,
    "l": 73.922
  },
  "oklch": {
    "l": 0.75275,
    "c": 0.11909,
    "h": 315.7
  },
  "luminance": 0.40462
}

Semantic roles & 50–950 ramp

primary
#CC97E2
secondary
#E1F0DB
accent
#C42251
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CC97E2

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

Preview Lab → · Contrast checker → · Palette generator →

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