#CD97DB#CD97DB

#CD97DB is a light, moderate purple. Relative luminance 0.402; OKLCH L 75.1% C 0.112 H 319.2°. Best body text is #000000 at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#CD97DB
RGBrgb(205, 151, 219)
HSLhsl(288, 49%, 73%)
HSVhsv(288, 31%, 86%)
CMYKcmyk(6.4%, 31.1%, 0%, 14.1%)
CIE-LABlab(69.63, 31.89, -26.75)
CIE-LCHlch(69.63, 41.63, 320.01°)
OKLaboklab(75.08% 0.0846 -0.0729)
OKLCHoklch(75.08% 0.112 319.2)
XYZxyz(49.0279, 40.2280, 72.1862)
Luminance0.4023 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD97DB #A5DB97
analogous
#AB97DB #CD97DB #DB97C7
triadic
#CD97DB #DBCD97 #97DBCD
tetradic
#CD97DB #DBAB97 #A5DB97 #97C7DB
square
#CD97DB #DBAB97 #A5DB97 #97C7DB
split-complementary
#CD97DB #C7DB97 #97DBAB
monochromatic
#9F40B8 #B76ACB #CD97DB #E3C4EB #F4E8F7

Accessibility & contrast

On white

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

On black

9.05
#CD97DB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD97DB
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD97DB#FFFFFF#000000##000000
##CD97DB1.002.329.059.05
#FFFFFF2.321.0021.0021.00
#0000009.0521.001.001.00
##0000009.0521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cd97db;
/* rgb */ color: rgb(205, 151, 219);
/* oklch */ color: oklch(75.1% 0.112 319.2);
Tailwind
colors: {
  custom: {
    50: '#ddb6e6',
    500: '#cd97db',
    950: '#000000',
  },
}
SCSS
$custom: #cd97db;
$custom-light: #ddb6e6;
$custom-dark: #000000;
JSON
{
  "hex": "#cd97db",
  "rgb": {
    "r": 205,
    "g": 151,
    "b": 219
  },
  "hsl": {
    "h": 287.647,
    "s": 48.571,
    "l": 72.549
  },
  "oklch": {
    "l": 0.75083,
    "c": 0.11169,
    "h": 319.2
  },
  "luminance": 0.40227
}

Semantic roles & 50–950 ramp

primary
#CD97DB
secondary
#E0EEDD
accent
#BC2A48
background
#FDFBFE
surface
#FBF6FC
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CD97DB

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

Preview Lab → · Contrast checker → · Palette generator →

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