#CD97E2#CD97E2

#CD97E2 is a light, moderate purple. Relative luminance 0.406; OKLCH L 75.4% C 0.120 H 316.3°. Best body text is #000000 at 9.12:1 contrast (WCAG AA passes).

Color values

HEX#CD97E2
RGBrgb(205, 151, 226)
HSLhsl(283, 56%, 74%)
HSVhsv(283, 33%, 89%)
CMYKcmyk(9.3%, 33.2%, 0%, 11.4%)
CIE-LABlab(69.90, 33.29, -30.20)
CIE-LCHlch(69.90, 44.95, 317.79°)
OKLaboklab(75.37% 0.0864 -0.0827)
OKLCHoklch(75.37% 0.12 316.3)
XYZxyz(49.9689, 40.6044, 77.1419)
Luminance0.4060 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD97E2 #ACE297
analogous
#A897E2 #CD97E2 #E297D2
triadic
#CD97E2 #E2CD97 #97E2CD
tetradic
#CD97E2 #E2A897 #ACE297 #97D2E2
square
#CD97E2 #E2A897 #ACE297 #97D2E2
split-complementary
#CD97E2 #D2E297 #97E2A8
monochromatic
#9F38C7 #B667D5 #CD97E2 #E4C7EF #F3E7F8

Accessibility & contrast

On white

2.30
#CD97E2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.12
#CD97E2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD97E2
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD97E2#FFFFFF#000000##000000
##CD97E21.002.309.129.12
#FFFFFF2.301.0021.0021.00
#0000009.1221.001.001.00
##0000009.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8CA7E5
Deuteranopia (green-blind)
#99ACE0
Tritanopia (blue-blind)
#CCA0B2
Achromatopsia (no color)
#ABABAB

Design tokens & code

CSS
--color: #cd97e2;
/* rgb */ color: rgb(205, 151, 226);
/* oklch */ color: oklch(75.4% 0.120 316.3);
Tailwind
colors: {
  custom: {
    50: '#ddb6eb',
    500: '#cd97e2',
    950: '#000000',
  },
}
SCSS
$custom: #cd97e2;
$custom-light: #ddb6eb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd97e2",
  "rgb": {
    "r": 205,
    "g": 151,
    "b": 226
  },
  "hsl": {
    "h": 283.2,
    "s": 56.391,
    "l": 73.922
  },
  "oklch": {
    "l": 0.75374,
    "c": 0.11959,
    "h": 316.3
  },
  "luminance": 0.40603
}

Semantic roles & 50–950 ramp

primary
#CD97E2
secondary
#E1F0DB
accent
#C4224F
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151116
muted
#838084

Preview Lab

Preview with #CD97E2

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

Preview Lab → · Contrast checker → · Palette generator →

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