#CD97E5#CD97E5

#CD97E5 is a light, vivid purple. Relative luminance 0.408; OKLCH L 75.5% C 0.123 H 315.1°. Best body text is #000000 at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#CD97E5
RGBrgb(205, 151, 229)
HSLhsl(282, 60%, 75%)
HSVhsv(282, 34%, 90%)
CMYKcmyk(10.5%, 34.1%, 0%, 10.2%)
CIE-LABlab(70.01, 33.90, -31.66)
CIE-LCHlch(70.01, 46.39, 316.96°)
OKLaboklab(75.5% 0.0871 -0.0869)
OKLCHoklch(75.5% 0.123 315.1)
XYZxyz(50.3841, 40.7705, 79.3289)
Luminance0.4077 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD97E5 #AFE597
analogous
#A697E5 #CD97E5 #E597D6
triadic
#CD97E5 #E5CD97 #97E5CD
tetradic
#CD97E5 #E5A697 #AFE597 #97D6E5
square
#CD97E5 #E5A697 #AFE597 #97D6E5
split-complementary
#CD97E5 #D6E597 #97E5A6
monochromatic
#9E35CD #B566D9 #CD97E5 #E5C8F1 #F3E7F9

Accessibility & contrast

On white

2.29
#CD97E5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.15
#CD97E5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD97E5
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD97E5#FFFFFF#000000##000000
##CD97E51.002.299.159.15
#FFFFFF2.291.0021.0021.00
#0000009.1521.001.001.00
##0000009.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8BA8E8
Deuteranopia (green-blind)
#98ADE3
Tritanopia (blue-blind)
#CCA1B4
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #cd97e5;
/* rgb */ color: rgb(205, 151, 229);
/* oklch */ color: oklch(75.5% 0.123 315.1);
Tailwind
colors: {
  custom: {
    50: '#ddb6ed',
    500: '#cd97e5',
    950: '#000000',
  },
}
SCSS
$custom: #cd97e5;
$custom-light: #ddb6ed;
$custom-dark: #000000;
JSON
{
  "hex": "#cd97e5",
  "rgb": {
    "r": 205,
    "g": 151,
    "b": 229
  },
  "hsl": {
    "h": 281.538,
    "s": 60,
    "l": 74.51
  },
  "oklch": {
    "l": 0.75501,
    "c": 0.12302,
    "h": 315.1
  },
  "luminance": 0.40769
}

Semantic roles & 50–950 ramp

primary
#CD97E5
secondary
#E1F0DB
accent
#C81E52
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CD97E5

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

Preview Lab → · Contrast checker → · Palette generator →

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