#CC97DB#CC97DB

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

Color values

HEX#CC97DB
RGBrgb(204, 151, 219)
HSLhsl(287, 49%, 73%)
HSVhsv(287, 31%, 86%)
CMYKcmyk(6.8%, 31.1%, 0%, 14.1%)
CIE-LABlab(69.53, 31.58, -26.92)
CIE-LCHlch(69.53, 41.49, 319.56°)
OKLaboklab(74.98% 0.0834 -0.0734)
OKLCHoklch(74.98% 0.111 318.7)
XYZxyz(48.7529, 40.0862, 72.1733)
Luminance0.4008 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC97DB #A6DB97
analogous
#AA97DB #CC97DB #DB97C8
triadic
#CC97DB #DBCC97 #97DBCC
tetradic
#CC97DB #DBAA97 #A6DB97 #97C8DB
square
#CC97DB #DBAA97 #A6DB97 #97C8DB
split-complementary
#CC97DB #C8DB97 #97DBAA
monochromatic
#9D40B8 #B66ACB #CC97DB #E2C4EB #F4E8F7

Accessibility & contrast

On white

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

On black

9.02
#CC97DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC97DB
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC97DB#FFFFFF#000000##000000
##CC97DB1.002.339.029.02
#FFFFFF2.331.0021.0021.00
#0000009.0221.001.001.00
##0000009.0221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8EA6DE
Deuteranopia (green-blind)
#9BACD9
Tritanopia (blue-blind)
#CD9FB0
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #cc97db;
/* rgb */ color: rgb(204, 151, 219);
/* oklch */ color: oklch(75.0% 0.111 318.7);
Tailwind
colors: {
  custom: {
    50: '#dcb6e6',
    500: '#cc97db',
    950: '#000000',
  },
}
SCSS
$custom: #cc97db;
$custom-light: #dcb6e6;
$custom-dark: #000000;
JSON
{
  "hex": "#cc97db",
  "rgb": {
    "r": 204,
    "g": 151,
    "b": 219
  },
  "hsl": {
    "h": 286.765,
    "s": 48.571,
    "l": 72.549
  },
  "oklch": {
    "l": 0.74984,
    "c": 0.11114,
    "h": 318.7
  },
  "luminance": 0.40085
}

Semantic roles & 50–950 ramp

primary
#CC97DB
secondary
#E1EEDD
accent
#BC2A4A
background
#FDFBFE
surface
#FBF6FC
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CC97DB

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

Preview Lab → · Contrast checker → · Palette generator →

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