#CD97F7#CD97F7

#CD97F7 is a light, vivid violet. Relative luminance 0.418; OKLCH L 76.3% C 0.144 H 309.2°. Best body text is #000000 at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#CD97F7
RGBrgb(205, 151, 247)
HSLhsl(274, 86%, 78%)
HSVhsv(274, 39%, 97%)
CMYKcmyk(17%, 38.9%, 0%, 3.1%)
CIE-LABlab(70.75, 37.69, -40.36)
CIE-LCHlch(70.75, 55.22, 313.04°)
OKLaboklab(76.3% 0.0911 -0.1117)
OKLCHoklch(76.3% 0.144 309.2)
XYZxyz(53.0288, 41.8284, 93.2578)
Luminance0.4183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD97F7 #C1F797
analogous
#9D97F7 #CD97F7 #F797F1
triadic
#CD97F7 #F7CD97 #97F7CD
tetradic
#CD97F7 #F79D97 #C1F797 #97F1F7
square
#CD97F7 #F79D97 #C1F797 #97F1F7
split-complementary
#CD97F7 #F1F797 #97F79D
monochromatic
#9625EE #B25EF3 #CD97F7 #E8D0FB #F1E3FD

Accessibility & contrast

On white

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

On black

9.37
#CD97F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD97F7
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD97F7#FFFFFF#000000##000000
##CD97F71.002.249.379.37
#FFFFFF2.241.0021.0021.00
#0000009.3721.001.001.00
##0000009.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#83ABFB
Deuteranopia (green-blind)
#90AEF4
Tritanopia (blue-blind)
#C8A5BB
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cd97f7;
/* rgb */ color: rgb(205, 151, 247);
/* oklch */ color: oklch(76.3% 0.144 309.2);
Tailwind
colors: {
  custom: {
    50: '#ddb6fa',
    500: '#cd97f7',
    950: '#000000',
  },
}
SCSS
$custom: #cd97f7;
$custom-light: #ddb6fa;
$custom-dark: #000000;
JSON
{
  "hex": "#cd97f7",
  "rgb": {
    "r": 205,
    "g": 151,
    "b": 247
  },
  "hsl": {
    "h": 273.75,
    "s": 85.714,
    "l": 78.039
  },
  "oklch": {
    "l": 0.76302,
    "c": 0.14417,
    "h": 309.2
  },
  "luminance": 0.41828
}

Semantic roles & 50–950 ramp

primary
#CD97F7
secondary
#E4F5D6
accent
#E20365
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CD97F7

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

Preview Lab → · Contrast checker → · Palette generator →

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