#CD97EB#CD97EB

#CD97EB is a light, vivid violet. Relative luminance 0.411; OKLCH L 75.8% C 0.130 H 312.9°. Best body text is #000000 at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#CD97EB
RGBrgb(205, 151, 235)
HSLhsl(279, 68%, 76%)
HSVhsv(279, 36%, 92%)
CMYKcmyk(12.8%, 35.7%, 0%, 7.8%)
CIE-LABlab(70.25, 35.14, -34.58)
CIE-LCHlch(70.25, 49.31, 315.46°)
OKLaboklab(75.76% 0.0885 -0.0952)
OKLCHoklch(75.76% 0.13 312.9)
XYZxyz(51.2364, 41.1114, 83.8174)
Luminance0.4111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD97EB #B5EB97
analogous
#A397EB #CD97EB #EB97DF
triadic
#CD97EB #EBCD97 #97EBCD
tetradic
#CD97EB #EBA397 #B5EB97 #97DFEB
square
#CD97EB #EBA397 #B5EB97 #97DFEB
split-complementary
#CD97EB #DFEB97 #97EBA3
monochromatic
#9C30D7 #B464E1 #CD97EB #E6CAF5 #F3E5FA

Accessibility & contrast

On white

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

On black

9.22
#CD97EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD97EB
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD97EB#FFFFFF#000000##000000
##CD97EB1.002.289.229.22
#FFFFFF2.281.0021.0021.00
#0000009.2221.001.001.00
##0000009.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#89A9EE
Deuteranopia (green-blind)
#95ADE9
Tritanopia (blue-blind)
#CBA2B6
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cd97eb;
/* rgb */ color: rgb(205, 151, 235);
/* oklch */ color: oklch(75.8% 0.130 312.9);
Tailwind
colors: {
  custom: {
    50: '#ddb6f1',
    500: '#cd97eb',
    950: '#000000',
  },
}
SCSS
$custom: #cd97eb;
$custom-light: #ddb6f1;
$custom-dark: #000000;
JSON
{
  "hex": "#cd97eb",
  "rgb": {
    "r": 205,
    "g": 151,
    "b": 235
  },
  "hsl": {
    "h": 278.571,
    "s": 67.742,
    "l": 75.686
  },
  "oklch": {
    "l": 0.75761,
    "c": 0.12999,
    "h": 312.9
  },
  "luminance": 0.41111
}

Semantic roles & 50–950 ramp

primary
#CD97EB
secondary
#E2F2D9
accent
#D01658
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CD97EB

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

Preview Lab → · Contrast checker → · Palette generator →

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