#CD97E1#CD97E1

#CD97E1 is a light, moderate purple. Relative luminance 0.405; OKLCH L 75.3% C 0.118 H 316.7°. Best body text is #000000 at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#CD97E1
RGBrgb(205, 151, 225)
HSLhsl(284, 55%, 74%)
HSVhsv(284, 33%, 88%)
CMYKcmyk(8.9%, 32.9%, 0%, 11.8%)
CIE-LABlab(69.86, 33.09, -29.71)
CIE-LCHlch(69.86, 44.47, 318.09°)
OKLaboklab(75.33% 0.0861 -0.0813)
OKLCHoklch(75.33% 0.118 316.7)
XYZxyz(49.8321, 40.5497, 76.4214)
Luminance0.4055 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD97E1 #ABE197
analogous
#A897E1 #CD97E1 #E197D0
triadic
#CD97E1 #E1CD97 #97E1CD
tetradic
#CD97E1 #E1A897 #ABE197 #97D0E1
square
#CD97E1 #E1A897 #ABE197 #97D0E1
split-complementary
#CD97E1 #D0E197 #97E1A8
monochromatic
#9F39C5 #B667D3 #CD97E1 #E4C6EF #F4E7F8

Accessibility & contrast

On white

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

On black

9.11
#CD97E1 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD97E1
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD97E1#FFFFFF#000000##000000
##CD97E11.002.319.119.11
#FFFFFF2.311.0021.0021.00
#0000009.1121.001.001.00
##0000009.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8DA7E4
Deuteranopia (green-blind)
#99ACDF
Tritanopia (blue-blind)
#CDA0B2
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #cd97e1;
/* rgb */ color: rgb(205, 151, 225);
/* oklch */ color: oklch(75.3% 0.118 316.7);
Tailwind
colors: {
  custom: {
    50: '#ddb6ea',
    500: '#cd97e1',
    950: '#000000',
  },
}
SCSS
$custom: #cd97e1;
$custom-light: #ddb6ea;
$custom-dark: #000000;
JSON
{
  "hex": "#cd97e1",
  "rgb": {
    "r": 205,
    "g": 151,
    "b": 225
  },
  "hsl": {
    "h": 283.784,
    "s": 55.224,
    "l": 73.725
  },
  "oklch": {
    "l": 0.75331,
    "c": 0.11845,
    "h": 316.7
  },
  "luminance": 0.40549
}

Semantic roles & 50–950 ramp

primary
#CD97E1
secondary
#E1EFDC
accent
#C3234E
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CD97E1

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

Preview Lab → · Contrast checker → · Palette generator →

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