#CD97E4#CD97E4

#CD97E4 is a light, vivid purple. Relative luminance 0.407; OKLCH L 75.5% C 0.122 H 315.5°. Best body text is #000000 at 9.14:1 contrast (WCAG AA passes).

Color values

HEX#CD97E4
RGBrgb(205, 151, 228)
HSLhsl(282, 59%, 74%)
HSVhsv(282, 34%, 89%)
CMYKcmyk(10.1%, 33.8%, 0%, 10.6%)
CIE-LABlab(69.98, 33.70, -31.17)
CIE-LCHlch(69.98, 45.91, 317.23°)
OKLaboklab(75.46% 0.0869 -0.0855)
OKLCHoklch(75.46% 0.122 315.5)
XYZxyz(50.2449, 40.7148, 78.5957)
Luminance0.4071 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD97E4 #AEE497
analogous
#A797E4 #CD97E4 #E497D5
triadic
#CD97E4 #E4CD97 #97E4CD
tetradic
#CD97E4 #E4A797 #AEE497 #97D5E4
square
#CD97E4 #E4A797 #AEE497 #97D5E4
split-complementary
#CD97E4 #D5E497 #97E4A7
monochromatic
#9E36CB #B666D7 #CD97E4 #E4C8F1 #F3E7F9

Accessibility & contrast

On white

2.30
#CD97E4 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.14
#CD97E4 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD97E4
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD97E4#FFFFFF#000000##000000
##CD97E41.002.309.149.14
#FFFFFF2.301.0021.0021.00
#0000009.1421.001.001.00
##0000009.1421.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BA8E7
Deuteranopia (green-blind)
#98ADE2
Tritanopia (blue-blind)
#CCA1B3
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #cd97e4;
/* rgb */ color: rgb(205, 151, 228);
/* oklch */ color: oklch(75.5% 0.122 315.5);
Tailwind
colors: {
  custom: {
    50: '#ddb6ec',
    500: '#cd97e4',
    950: '#000000',
  },
}
SCSS
$custom: #cd97e4;
$custom-light: #ddb6ec;
$custom-dark: #000000;
JSON
{
  "hex": "#cd97e4",
  "rgb": {
    "r": 205,
    "g": 151,
    "b": 228
  },
  "hsl": {
    "h": 282.078,
    "s": 58.779,
    "l": 74.314
  },
  "oklch": {
    "l": 0.75458,
    "c": 0.12187,
    "h": 315.5
  },
  "luminance": 0.40714
}

Semantic roles & 50–950 ramp

primary
#CD97E4
secondary
#E1F0DB
accent
#C61F51
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CD97E4

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

Preview Lab → · Contrast checker → · Palette generator →

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