#CD97D2#CD97D2

#CD97D2 is a light, moderate purple. Relative luminance 0.398; OKLCH L 74.7% C 0.102 H 323.7°. Best body text is #000000 at 8.95:1 contrast (WCAG AA passes).

Color values

HEX#CD97D2
RGBrgb(205, 151, 210)
HSLhsl(295, 40%, 71%)
HSVhsv(295, 28%, 82%)
CMYKcmyk(2.4%, 28.1%, 0%, 17.6%)
CIE-LABlab(69.30, 30.14, -22.28)
CIE-LCHlch(69.30, 37.48, 323.52°)
OKLaboklab(74.72% 0.0821 -0.0604)
OKLCHoklch(74.72% 0.102 323.7)
XYZxyz(47.8750, 39.7669, 66.1141)
Luminance0.3977 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD97D2 #9CD297
analogous
#AF97D2 #CD97D2 #D297B9
triadic
#CD97D2 #D2CD97 #97D2CD
tetradic
#CD97D2 #D2AF97 #9CD297 #97B9D2
square
#CD97D2 #D2AF97 #9CD297 #97B9D2
split-complementary
#CD97D2 #B9D297 #97D2AF
monochromatic
#9F48A7 #B86CC0 #CD97D2 #E2C2E4 #F5EAF6

Accessibility & contrast

On white

2.35
#CD97D2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.95
#CD97D2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD97D2
8.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD97D2#FFFFFF#000000##000000
##CD97D21.002.358.958.95
#FFFFFF2.351.0021.0021.00
#0000008.9521.001.001.00
##0000008.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#92A5D4
Deuteranopia (green-blind)
#9EABD0
Tritanopia (blue-blind)
#D09DAC
Achromatopsia (no color)
#A9A9A9

Design tokens & code

CSS
--color: #cd97d2;
/* rgb */ color: rgb(205, 151, 210);
/* oklch */ color: oklch(74.7% 0.102 323.7);
Tailwind
colors: {
  custom: {
    50: '#ddb6e0',
    500: '#cd97d2',
    950: '#000000',
  },
}
SCSS
$custom: #cd97d2;
$custom-light: #ddb6e0;
$custom-dark: #000000;
JSON
{
  "hex": "#cd97d2",
  "rgb": {
    "r": 205,
    "g": 151,
    "b": 210
  },
  "hsl": {
    "h": 294.915,
    "s": 39.597,
    "l": 70.784
  },
  "oklch": {
    "l": 0.74725,
    "c": 0.10192,
    "h": 323.7
  },
  "luminance": 0.39765
}

Semantic roles & 50–950 ramp

primary
#CD97D2
secondary
#DCEADA
accent
#B3333E
background
#FDFBFD
surface
#FBF6FB
border
#D4D0D4
text
#151115
muted
#838083

Preview Lab

Preview with #CD97D2

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

Preview Lab → · Contrast checker → · Palette generator →

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