#CD97EA#CD97EA

#CD97EA is a light, vivid violet. Relative luminance 0.411; OKLCH L 75.7% C 0.129 H 313.3°. Best body text is #000000 at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#CD97EA
RGBrgb(205, 151, 234)
HSLhsl(279, 66%, 75%)
HSVhsv(279, 35%, 92%)
CMYKcmyk(12.4%, 35.5%, 0%, 8.2%)
CIE-LABlab(70.21, 34.94, -34.10)
CIE-LCHlch(70.21, 48.82, 315.69°)
OKLaboklab(75.72% 0.0883 -0.0938)
OKLCHoklch(75.72% 0.129 313.3)
XYZxyz(51.0923, 41.0538, 83.0586)
Luminance0.4105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD97EA #B4EA97
analogous
#A397EA #CD97EA #EA97DD
triadic
#CD97EA #EACD97 #97EACD
tetradic
#CD97EA #EAA397 #B4EA97 #97DDEA
square
#CD97EA #EAA397 #B4EA97 #97DDEA
split-complementary
#CD97EA #DDEA97 #97EAA3
monochromatic
#9C31D5 #B564E0 #CD97EA #E5CAF4 #F3E6FA

Accessibility & contrast

On white

2.28
#CD97EA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.21
#CD97EA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD97EA
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD97EA#FFFFFF#000000##000000
##CD97EA1.002.289.219.21
#FFFFFF2.281.0021.0021.00
#0000009.2121.001.001.00
##0000009.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#89A9ED
Deuteranopia (green-blind)
#96ADE8
Tritanopia (blue-blind)
#CBA2B6
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cd97ea;
/* rgb */ color: rgb(205, 151, 234);
/* oklch */ color: oklch(75.7% 0.129 313.3);
Tailwind
colors: {
  custom: {
    50: '#ddb6f1',
    500: '#cd97ea',
    950: '#000000',
  },
}
SCSS
$custom: #cd97ea;
$custom-light: #ddb6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#cd97ea",
  "rgb": {
    "r": 205,
    "g": 151,
    "b": 234
  },
  "hsl": {
    "h": 279.036,
    "s": 66.4,
    "l": 75.49
  },
  "oklch": {
    "l": 0.75717,
    "c": 0.12882,
    "h": 313.3
  },
  "luminance": 0.41053
}

Semantic roles & 50–950 ramp

primary
#CD97EA
secondary
#E2F1DA
accent
#CE1757
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CD97EA

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

Preview Lab → · Contrast checker → · Palette generator →

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