#CC97FD#CC97FD

#CC97FD is a light, vivid violet. Relative luminance 0.421; OKLCH L 76.5% C 0.151 H 307.1°. Best body text is #000000 at 9.41:1 contrast (WCAG AA passes).

Color values

HEX#CC97FD
RGBrgb(204, 151, 253)
HSLhsl(271, 96%, 79%)
HSVhsv(271, 40%, 99%)
CMYKcmyk(19.4%, 40.3%, 0%, 0.8%)
CIE-LABlab(70.91, 38.70, -43.38)
CIE-LCHlch(70.91, 58.14, 311.74°)
OKLaboklab(76.49% 0.0911 -0.1205)
OKLCHoklch(76.49% 0.151 307.1)
XYZxyz(53.6946, 42.0629, 98.1997)
Luminance0.4206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC97FD #C8FD97
analogous
#9997FD #CC97FD #FD97FB
triadic
#CC97FD #FDCC97 #97FDCC
tetradic
#CC97FD #FD9997 #C8FD97 #97FBFD
square
#CC97FD #FD9997 #C8FD97 #97FBFD
split-complementary
#CC97FD #FBFD97 #97FD99
monochromatic
#911FFB #AF5BFC #CC97FD #E9D3FE #F0E1FE

Accessibility & contrast

On white

2.23
#CC97FD on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.41
#CC97FD on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC97FD
9.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC97FD#FFFFFF#000000##000000
##CC97FD1.002.239.419.41
#FFFFFF2.231.0021.0021.00
#0000009.4121.001.001.00
##0000009.4121.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cc97fd;
/* rgb */ color: rgb(204, 151, 253);
/* oklch */ color: oklch(76.5% 0.151 307.1);
Tailwind
colors: {
  custom: {
    50: '#ddb6fe',
    500: '#cc97fd',
    950: '#000000',
  },
}
SCSS
$custom: #cc97fd;
$custom-light: #ddb6fe;
$custom-dark: #000000;
JSON
{
  "hex": "#cc97fd",
  "rgb": {
    "r": 204,
    "g": 151,
    "b": 253
  },
  "hsl": {
    "h": 271.176,
    "s": 96.226,
    "l": 79.216
  },
  "oklch": {
    "l": 0.76487,
    "c": 0.15102,
    "h": 307.1
  },
  "luminance": 0.42062
}

Semantic roles & 50–950 ramp

primary
#CC97FD
secondary
#E5F7D4
accent
#E6006E
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CC97FD

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

Preview Lab → · Contrast checker → · Palette generator →

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