#CD97EE#CD97EE

#CD97EE is a light, vivid violet. Relative luminance 0.413; OKLCH L 75.9% C 0.134 H 311.9°. Best body text is #000000 at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#CD97EE
RGBrgb(205, 151, 238)
HSLhsl(277, 72%, 76%)
HSVhsv(277, 37%, 93%)
CMYKcmyk(13.9%, 36.6%, 0%, 6.7%)
CIE-LABlab(70.38, 35.77, -36.04)
CIE-LCHlch(70.38, 50.77, 314.79°)
OKLaboklab(75.89% 0.0892 -0.0993)
OKLCHoklch(75.89% 0.134 311.9)
XYZxyz(51.6734, 41.2862, 86.1192)
Luminance0.4128 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD97EE #B8EE97
analogous
#A297EE #CD97EE #EE97E4
triadic
#CD97EE #EECD97 #97EECD
tetradic
#CD97EE #EEA297 #B8EE97 #97E4EE
square
#CD97EE #EEA297 #B8EE97 #97E4EE
split-complementary
#CD97EE #E4EE97 #97EEA2
monochromatic
#9A2EDD #B462E5 #CD97EE #E6CCF7 #F2E5FB

Accessibility & contrast

On white

2.27
#CD97EE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.26
#CD97EE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD97EE
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD97EE#FFFFFF#000000##000000
##CD97EE1.002.279.269.26
#FFFFFF2.271.0021.0021.00
#0000009.2621.001.001.00
##0000009.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#87A9F1
Deuteranopia (green-blind)
#94ADEB
Tritanopia (blue-blind)
#CAA3B8
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cd97ee;
/* rgb */ color: rgb(205, 151, 238);
/* oklch */ color: oklch(75.9% 0.134 311.9);
Tailwind
colors: {
  custom: {
    50: '#ddb6f4',
    500: '#cd97ee',
    950: '#000000',
  },
}
SCSS
$custom: #cd97ee;
$custom-light: #ddb6f4;
$custom-dark: #000000;
JSON
{
  "hex": "#cd97ee",
  "rgb": {
    "r": 205,
    "g": 151,
    "b": 238
  },
  "hsl": {
    "h": 277.241,
    "s": 71.901,
    "l": 76.275
  },
  "oklch": {
    "l": 0.75894,
    "c": 0.13351,
    "h": 311.9
  },
  "luminance": 0.41285
}

Semantic roles & 50–950 ramp

primary
#CD97EE
secondary
#E2F2D9
accent
#D4125B
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CD97EE

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

Preview Lab → · Contrast checker → · Palette generator →

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