#CD97E9#CD97E9

#CD97E9 is a light, vivid violet. Relative luminance 0.410; OKLCH L 75.7% C 0.128 H 313.6°. Best body text is #000000 at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#CD97E9
RGBrgb(205, 151, 233)
HSLhsl(280, 65%, 75%)
HSVhsv(280, 35%, 91%)
CMYKcmyk(12%, 35.2%, 0%, 8.6%)
CIE-LABlab(70.17, 34.73, -33.61)
CIE-LCHlch(70.17, 48.33, 315.94°)
OKLaboklab(75.67% 0.0881 -0.0924)
OKLCHoklch(75.67% 0.128 313.6)
XYZxyz(50.9490, 40.9965, 82.3042)
Luminance0.4100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD97E9 #B3E997
analogous
#A497E9 #CD97E9 #E997DC
triadic
#CD97E9 #E9CD97 #97E9CD
tetradic
#CD97E9 #E9A497 #B3E997 #97DCE9
square
#CD97E9 #E9A497 #B3E997 #97DCE9
split-complementary
#CD97E9 #DCE997 #97E9A4
monochromatic
#9C32D4 #B564DE #CD97E9 #E5CAF4 #F3E6FA

Accessibility & contrast

On white

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

On black

9.20
#CD97E9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD97E9
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD97E9#FFFFFF#000000##000000
##CD97E91.002.289.209.20
#FFFFFF2.281.0021.0021.00
#0000009.2021.001.001.00
##0000009.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#89A8EC
Deuteranopia (green-blind)
#96ADE7
Tritanopia (blue-blind)
#CBA2B5
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cd97e9;
/* rgb */ color: rgb(205, 151, 233);
/* oklch */ color: oklch(75.7% 0.128 313.6);
Tailwind
colors: {
  custom: {
    50: '#ddb6f0',
    500: '#cd97e9',
    950: '#000000',
  },
}
SCSS
$custom: #cd97e9;
$custom-light: #ddb6f0;
$custom-dark: #000000;
JSON
{
  "hex": "#cd97e9",
  "rgb": {
    "r": 205,
    "g": 151,
    "b": 233
  },
  "hsl": {
    "h": 279.512,
    "s": 65.079,
    "l": 75.294
  },
  "oklch": {
    "l": 0.75673,
    "c": 0.12766,
    "h": 313.6
  },
  "luminance": 0.40996
}

Semantic roles & 50–950 ramp

primary
#CD97E9
secondary
#E2F1DA
accent
#CD1956
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CD97E9

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

Preview Lab → · Contrast checker → · Palette generator →

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