#CD97F6#CD97F6

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

Color values

HEX#CD97F6
RGBrgb(205, 151, 246)
HSLhsl(274, 84%, 78%)
HSVhsv(274, 39%, 96%)
CMYKcmyk(16.7%, 38.6%, 0%, 3.5%)
CIE-LABlab(70.71, 37.47, -39.88)
CIE-LCHlch(70.71, 54.72, 313.21°)
OKLaboklab(76.26% 0.0909 -0.1104)
OKLCHoklch(76.26% 0.143 309.5)
XYZxyz(52.8749, 41.7668, 92.4472)
Luminance0.4177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CD97F6 #C0F697
analogous
#9D97F6 #CD97F6 #F697F0
triadic
#CD97F6 #F6CD97 #97F6CD
tetradic
#CD97F6 #F69D97 #C0F697 #97F0F6
square
#CD97F6 #F69D97 #C0F697 #97F0F6
split-complementary
#CD97F6 #F0F697 #97F69D
monochromatic
#9726EC #B25FF1 #CD97F6 #E8CFFB #F1E3FD

Accessibility & contrast

On white

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

On black

9.35
#CD97F6 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CD97F6
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CD97F6#FFFFFF#000000##000000
##CD97F61.002.259.359.35
#FFFFFF2.251.0021.0021.00
#0000009.3521.001.001.00
##0000009.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#84ABFA
Deuteranopia (green-blind)
#90AEF3
Tritanopia (blue-blind)
#C8A5BB
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cd97f6;
/* rgb */ color: rgb(205, 151, 246);
/* oklch */ color: oklch(76.3% 0.143 309.5);
Tailwind
colors: {
  custom: {
    50: '#ddb6f9',
    500: '#cd97f6',
    950: '#000000',
  },
}
SCSS
$custom: #cd97f6;
$custom-light: #ddb6f9;
$custom-dark: #000000;
JSON
{
  "hex": "#cd97f6",
  "rgb": {
    "r": 205,
    "g": 151,
    "b": 246
  },
  "hsl": {
    "h": 274.105,
    "s": 84.071,
    "l": 77.843
  },
  "oklch": {
    "l": 0.76256,
    "c": 0.14297,
    "h": 309.5
  },
  "luminance": 0.41766
}

Semantic roles & 50–950 ramp

primary
#CD97F6
secondary
#E3F5D6
accent
#E10564
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CD97F6

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

Preview Lab → · Contrast checker → · Palette generator →

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