#CD97F5#CD97F5

#CD97F5 is a light, vivid violet. Relative luminance 0.417; OKLCH L 76.2% C 0.142 H 309.8°. Best body text is #000000 at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#CD97F5
RGBrgb(205, 151, 245)
HSLhsl(274, 82%, 78%)
HSVhsv(274, 38%, 96%)
CMYKcmyk(16.3%, 38.4%, 0%, 3.9%)
CIE-LABlab(70.67, 37.26, -39.40)
CIE-LCHlch(70.67, 54.23, 313.39°)
OKLaboklab(76.21% 0.0907 -0.109)
OKLCHoklch(76.21% 0.142 309.8)
XYZxyz(52.7219, 41.7056, 91.6411)
Luminance0.4170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD97F5 #BFF597
analogous
#9E97F5 #CD97F5 #F597EE
triadic
#CD97F5 #F5CD97 #97F5CD
tetradic
#CD97F5 #F59E97 #BFF597 #97EEF5
square
#CD97F5 #F59E97 #BFF597 #97EEF5
split-complementary
#CD97F5 #EEF597 #97F59E
monochromatic
#9727EA #B25FF0 #CD97F5 #E8CFFA #F2E3FC

Accessibility & contrast

On white

2.25
#CD97F5 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.34
#CD97F5 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD97F5
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD97F5#FFFFFF#000000##000000
##CD97F51.002.259.349.34
#FFFFFF2.251.0021.0021.00
#0000009.3421.001.001.00
##0000009.3421.001.001.00

Color blindness preview

Protanopia (red-blind)
#84AAF9
Deuteranopia (green-blind)
#91AEF2
Tritanopia (blue-blind)
#C8A5BB
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cd97f5;
/* rgb */ color: rgb(205, 151, 245);
/* oklch */ color: oklch(76.2% 0.142 309.8);
Tailwind
colors: {
  custom: {
    50: '#ddb6f9',
    500: '#cd97f5',
    950: '#000000',
  },
}
SCSS
$custom: #cd97f5;
$custom-light: #ddb6f9;
$custom-dark: #000000;
JSON
{
  "hex": "#cd97f5",
  "rgb": {
    "r": 205,
    "g": 151,
    "b": 245
  },
  "hsl": {
    "h": 274.468,
    "s": 82.456,
    "l": 77.647
  },
  "oklch": {
    "l": 0.7621,
    "c": 0.14179,
    "h": 309.8
  },
  "luminance": 0.41705
}

Semantic roles & 50–950 ramp

primary
#CD97F5
secondary
#E3F4D7
accent
#DF0763
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CD97F5

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

Preview Lab → · Contrast checker → · Palette generator →

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