#CD97E7#CD97E7

#CD97E7 is a light, vivid purple. Relative luminance 0.409; OKLCH L 75.6% C 0.125 H 314.3°. Best body text is #000000 at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#CD97E7
RGBrgb(205, 151, 231)
HSLhsl(281, 63%, 75%)
HSVhsv(281, 35%, 91%)
CMYKcmyk(11.3%, 34.6%, 0%, 9.4%)
CIE-LABlab(70.09, 34.32, -32.64)
CIE-LCHlch(70.09, 47.36, 316.43°)
OKLaboklab(75.59% 0.0876 -0.0896)
OKLCHoklch(75.59% 0.125 314.3)
XYZxyz(50.6650, 40.8828, 80.8080)
Luminance0.4088 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD97E7 #B1E797
analogous
#A597E7 #CD97E7 #E797D9
triadic
#CD97E7 #E7CD97 #97E7CD
tetradic
#CD97E7 #E7A597 #B1E797 #97D9E7
square
#CD97E7 #E7A597 #B1E797 #97D9E7
split-complementary
#CD97E7 #D9E797 #97E7A5
monochromatic
#9D34D0 #B565DC #CD97E7 #E5C9F2 #F3E6F9

Accessibility & contrast

On white

2.29
#CD97E7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.18
#CD97E7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD97E7
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD97E7#FFFFFF#000000##000000
##CD97E71.002.299.189.18
#FFFFFF2.291.0021.0021.00
#0000009.1821.001.001.00
##0000009.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8AA8EA
Deuteranopia (green-blind)
#97ADE5
Tritanopia (blue-blind)
#CBA1B5
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #cd97e7;
/* rgb */ color: rgb(205, 151, 231);
/* oklch */ color: oklch(75.6% 0.125 314.3);
Tailwind
colors: {
  custom: {
    50: '#ddb6ef',
    500: '#cd97e7',
    950: '#000000',
  },
}
SCSS
$custom: #cd97e7;
$custom-light: #ddb6ef;
$custom-dark: #000000;
JSON
{
  "hex": "#cd97e7",
  "rgb": {
    "r": 205,
    "g": 151,
    "b": 231
  },
  "hsl": {
    "h": 280.5,
    "s": 62.5,
    "l": 74.902
  },
  "oklch": {
    "l": 0.75587,
    "c": 0.12534,
    "h": 314.3
  },
  "luminance": 0.40882
}

Semantic roles & 50–950 ramp

primary
#CD97E7
secondary
#E2F1DA
accent
#CA1B54
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CD97E7

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

Preview Lab → · Contrast checker → · Palette generator →

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