#CC97FC#CC97FC

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

Color values

HEX#CC97FC
RGBrgb(204, 151, 252)
HSLhsl(271, 94%, 79%)
HSVhsv(271, 40%, 99%)
CMYKcmyk(19%, 40.1%, 0%, 1.2%)
CIE-LABlab(70.87, 38.48, -42.91)
CIE-LCHlch(70.87, 57.64, 311.89°)
OKLaboklab(76.44% 0.0909 -0.1191)
OKLCHoklch(76.44% 0.15 307.3)
XYZxyz(53.5357, 41.9994, 97.3630)
Luminance0.4200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC97FC #C7FC97
analogous
#9A97FC #CC97FC #FC97FA
triadic
#CC97FC #FCCC97 #97FCCC
tetradic
#CC97FC #FC9A97 #C7FC97 #97FAFC
square
#CC97FC #FC9A97 #C7FC97 #97FAFC
split-complementary
#CC97FC #FAFC97 #97FC9A
monochromatic
#9220F9 #AF5CFA #CC97FC #E9D2FE #F0E1FE

Accessibility & contrast

On white

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

On black

9.40
#CC97FC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC97FC
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC97FC#FFFFFF#000000##000000
##CC97FC1.002.239.409.40
#FFFFFF2.231.0021.0021.00
#0000009.4021.001.001.00
##0000009.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#81ABFF
Deuteranopia (green-blind)
#8DAEF9
Tritanopia (blue-blind)
#C5A7BE
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cc97fc;
/* rgb */ color: rgb(204, 151, 252);
/* oklch */ color: oklch(76.4% 0.150 307.3);
Tailwind
colors: {
  custom: {
    50: '#ddb6fd',
    500: '#cc97fc',
    950: '#000000',
  },
}
SCSS
$custom: #cc97fc;
$custom-light: #ddb6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cc97fc",
  "rgb": {
    "r": 204,
    "g": 151,
    "b": 252
  },
  "hsl": {
    "h": 271.485,
    "s": 94.393,
    "l": 79.02
  },
  "oklch": {
    "l": 0.76439,
    "c": 0.14982,
    "h": 307.3
  },
  "luminance": 0.41999
}

Semantic roles & 50–950 ramp

primary
#CC97FC
secondary
#E5F6D5
accent
#E6006D
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CC97FC

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

Preview Lab → · Contrast checker → · Palette generator →

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