#CD97DF#CD97DF

#CD97DF is a light, moderate purple. Relative luminance 0.404; OKLCH L 75.2% C 0.116 H 317.5°. Best body text is #000000 at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#CD97DF
RGBrgb(205, 151, 223)
HSLhsl(285, 53%, 73%)
HSVhsv(285, 32%, 87%)
CMYKcmyk(8.1%, 32.3%, 0%, 12.5%)
CIE-LABlab(69.78, 32.69, -28.72)
CIE-LCHlch(69.78, 43.52, 318.70°)
OKLaboklab(75.25% 0.0856 -0.0785)
OKLCHoklch(75.25% 0.116 317.5)
XYZxyz(49.5608, 40.4412, 74.9929)
Luminance0.4044 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD97DF #A9DF97
analogous
#A997DF #CD97DF #DF97CD
triadic
#CD97DF #DFCD97 #97DFCD
tetradic
#CD97DF #DFA997 #A9DF97 #97CDDF
square
#CD97DF #DFA997 #A9DF97 #97CDDF
split-complementary
#CD97DF #CDDF97 #97DFA9
monochromatic
#9F3BC0 #B668D1 #CD97DF #E3C6ED #F4E8F8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CD97DF#FFFFFF#000000##000000
##CD97DF1.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)
#8DA7E2
Deuteranopia (green-blind)
#9AACDD
Tritanopia (blue-blind)
#CD9FB1
Achromatopsia (no color)
#AAAAAA

Design tokens & code

CSS
--color: #cd97df;
/* rgb */ color: rgb(205, 151, 223);
/* oklch */ color: oklch(75.2% 0.116 317.5);
Tailwind
colors: {
  custom: {
    50: '#ddb6e9',
    500: '#cd97df',
    950: '#000000',
  },
}
SCSS
$custom: #cd97df;
$custom-light: #ddb6e9;
$custom-dark: #000000;
JSON
{
  "hex": "#cd97df",
  "rgb": {
    "r": 205,
    "g": 151,
    "b": 223
  },
  "hsl": {
    "h": 285,
    "s": 52.941,
    "l": 73.333
  },
  "oklch": {
    "l": 0.75248,
    "c": 0.11617,
    "h": 317.5
  },
  "luminance": 0.4044
}

Semantic roles & 50–950 ramp

primary
#CD97DF
secondary
#E1EFDC
accent
#C0254C
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CD97DF

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

Preview Lab → · Contrast checker → · Palette generator →

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