#CD97DC#CD97DC

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

Color values

HEX#CD97DC
RGBrgb(205, 151, 220)
HSLhsl(287, 50%, 73%)
HSVhsv(287, 31%, 86%)
CMYKcmyk(6.8%, 31.4%, 0%, 13.7%)
CIE-LABlab(69.67, 32.09, -27.25)
CIE-LCHlch(69.67, 42.10, 319.67°)
OKLaboklab(75.12% 0.0849 -0.0743)
OKLCHoklch(75.12% 0.113 318.8)
XYZxyz(49.1599, 40.2808, 72.8816)
Luminance0.4028 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD97DC #A6DC97
analogous
#AB97DC #CD97DC #DC97C8
triadic
#CD97DC #DCCD97 #97DCCD
tetradic
#CD97DC #DCAB97 #A6DC97 #97C8DC
square
#CD97DC #DCAB97 #A6DC97 #97C8DC
split-complementary
#CD97DC #C8DC97 #97DCAB
monochromatic
#9F3FBA #B769CD #CD97DC #E3C5EB #F4E8F7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CD97DC#FFFFFF#000000##000000
##CD97DC1.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)
#8EA7DF
Deuteranopia (green-blind)
#9BACDA
Tritanopia (blue-blind)
#CE9FB0
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #cd97dc;
/* rgb */ color: rgb(205, 151, 220);
/* oklch */ color: oklch(75.1% 0.113 318.8);
Tailwind
colors: {
  custom: {
    50: '#ddb6e7',
    500: '#cd97dc',
    950: '#000000',
  },
}
SCSS
$custom: #cd97dc;
$custom-light: #ddb6e7;
$custom-dark: #000000;
JSON
{
  "hex": "#cd97dc",
  "rgb": {
    "r": 205,
    "g": 151,
    "b": 220
  },
  "hsl": {
    "h": 286.957,
    "s": 49.64,
    "l": 72.745
  },
  "oklch": {
    "l": 0.75124,
    "c": 0.1128,
    "h": 318.8
  },
  "luminance": 0.4028
}

Semantic roles & 50–950 ramp

primary
#CD97DC
secondary
#E0EEDD
accent
#BD2949
background
#FDFBFE
surface
#FBF6FC
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CD97DC

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

Preview Lab → · Contrast checker → · Palette generator →

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