#CD97F9#CD97F9

#CD97F9 is a light, vivid violet. Relative luminance 0.420; OKLCH L 76.4% C 0.147 H 308.6°. Best body text is #000000 at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#CD97F9
RGBrgb(205, 151, 249)
HSLhsl(273, 89%, 78%)
HSVhsv(273, 39%, 98%)
CMYKcmyk(17.7%, 39.4%, 0%, 2.4%)
CIE-LABlab(70.84, 38.12, -41.32)
CIE-LCHlch(70.84, 56.21, 312.69°)
OKLaboklab(76.4% 0.0915 -0.1145)
OKLCHoklch(76.4% 0.147 308.6)
XYZxyz(53.3391, 41.9525, 94.8919)
Luminance0.4195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD97F9 #C3F997
analogous
#9C97F9 #CD97F9 #F997F4
triadic
#CD97F9 #F9CD97 #97F9CD
tetradic
#CD97F9 #F99C97 #C3F997 #97F4F9
square
#CD97F9 #F99C97 #C3F997 #97F4F9
split-complementary
#CD97F9 #F4F997 #97F99C
monochromatic
#9523F2 #B15DF6 #CD97F9 #E9D1FC #F1E2FD

Accessibility & contrast

On white

2.24
#CD97F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.39
#CD97F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD97F9
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD97F9#FFFFFF#000000##000000
##CD97F91.002.249.399.39
#FFFFFF2.241.0021.0021.00
#0000009.3921.001.001.00
##0000009.3921.001.001.00

Color blindness preview

Protanopia (red-blind)
#82ABFD
Deuteranopia (green-blind)
#8FAEF6
Tritanopia (blue-blind)
#C7A6BC
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cd97f9;
/* rgb */ color: rgb(205, 151, 249);
/* oklch */ color: oklch(76.4% 0.147 308.6);
Tailwind
colors: {
  custom: {
    50: '#deb6fb',
    500: '#cd97f9',
    950: '#000000',
  },
}
SCSS
$custom: #cd97f9;
$custom-light: #deb6fb;
$custom-dark: #000000;
JSON
{
  "hex": "#cd97f9",
  "rgb": {
    "r": 205,
    "g": 151,
    "b": 249
  },
  "hsl": {
    "h": 273.061,
    "s": 89.091,
    "l": 78.431
  },
  "oklch": {
    "l": 0.76395,
    "c": 0.14655,
    "h": 308.6
  },
  "luminance": 0.41952
}

Semantic roles & 50–950 ramp

primary
#CD97F9
secondary
#E4F5D6
accent
#E60067
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CD97F9

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

Preview Lab → · Contrast checker → · Palette generator →

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