#CD97FD#CD97FD

#CD97FD is a light, vivid violet. Relative luminance 0.422; OKLCH L 76.6% C 0.151 H 307.5°. Best body text is #000000 at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#CD97FD
RGBrgb(205, 151, 253)
HSLhsl(272, 96%, 79%)
HSVhsv(272, 40%, 99%)
CMYKcmyk(19%, 40.3%, 0%, 0.8%)
CIE-LABlab(71.01, 38.99, -43.22)
CIE-LCHlch(71.01, 58.21, 312.05°)
OKLaboklab(76.58% 0.0922 -0.12)
OKLCHoklch(76.58% 0.151 307.5)
XYZxyz(53.9696, 42.2047, 98.2126)
Luminance0.4220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD97FD #C7FD97
analogous
#9A97FD #CD97FD #FD97FA
triadic
#CD97FD #FDCD97 #97FDCD
tetradic
#CD97FD #FD9A97 #C7FD97 #97FAFD
square
#CD97FD #FD9A97 #C7FD97 #97FAFD
split-complementary
#CD97FD #FAFD97 #97FD9A
monochromatic
#931FFB #B05BFC #CD97FD #EAD3FE #F1E1FE

Accessibility & contrast

On white

2.22
#CD97FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.44
#CD97FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD97FD
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD97FD#FFFFFF#000000##000000
##CD97FD1.002.229.449.44
#FFFFFF2.221.0021.0021.00
#0000009.4421.001.001.00
##0000009.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#80ACFF
Deuteranopia (green-blind)
#8DAEFA
Tritanopia (blue-blind)
#C6A7BE
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cd97fd;
/* rgb */ color: rgb(205, 151, 253);
/* oklch */ color: oklch(76.6% 0.151 307.5);
Tailwind
colors: {
  custom: {
    50: '#deb6fe',
    500: '#cd97fd',
    950: '#000000',
  },
}
SCSS
$custom: #cd97fd;
$custom-light: #deb6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cd97fd",
  "rgb": {
    "r": 205,
    "g": 151,
    "b": 253
  },
  "hsl": {
    "h": 271.765,
    "s": 96.226,
    "l": 79.216
  },
  "oklch": {
    "l": 0.76583,
    "c": 0.15134,
    "h": 307.5
  },
  "luminance": 0.42204
}

Semantic roles & 50–950 ramp

primary
#CD97FD
secondary
#E4F7D4
accent
#E6006C
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CD97FD

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

Preview Lab → · Contrast checker → · Palette generator →

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