#CC97FF#CC97FF

#CC97FF is a light, vivid violet. Relative luminance 0.422; OKLCH L 76.6% C 0.153 H 306.6°. Best body text is #000000 at 9.44:1 contrast (WCAG AA passes).

Color values

HEX#CC97FF
RGBrgb(204, 151, 255)
HSLhsl(271, 100%, 80%)
HSVhsv(271, 41%, 100%)
CMYKcmyk(20%, 40.8%, 0%, 0%)
CIE-LABlab(71.00, 39.14, -44.33)
CIE-LCHlch(71.00, 59.14, 311.45°)
OKLaboklab(76.58% 0.0914 -0.1232)
OKLCHoklch(76.58% 0.153 306.6)
XYZxyz(54.0149, 42.1910, 99.8865)
Luminance0.4219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC97FF #CAFF97
analogous
#9897FF #CC97FF #FF97FE
triadic
#CC97FF #FFCC97 #97FFCC
tetradic
#CC97FF #FF9897 #CAFF97 #97FEFF
square
#CC97FF #FF9897 #CAFF97 #97FEFF
split-complementary
#CC97FF #FEFF97 #97FF98
monochromatic
#901DFF #AE5AFF #CC97FF #EAD4FF #F0E0FF

Accessibility & contrast

On white

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

On black

9.44
#CC97FF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC97FF
9.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC97FF#FFFFFF#000000##000000
##CC97FF1.002.239.449.44
#FFFFFF2.231.0021.0021.00
#0000009.4421.001.001.00
##0000009.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#7FACFF
Deuteranopia (green-blind)
#8BAEFC
Tritanopia (blue-blind)
#C5A7BF
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #cc97ff;
/* rgb */ color: rgb(204, 151, 255);
/* oklch */ color: oklch(76.6% 0.153 306.6);
Tailwind
colors: {
  custom: {
    50: '#ddb6ff',
    500: '#cc97ff',
    950: '#000000',
  },
}
SCSS
$custom: #cc97ff;
$custom-light: #ddb6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cc97ff",
  "rgb": {
    "r": 204,
    "g": 151,
    "b": 255
  },
  "hsl": {
    "h": 270.577,
    "s": 100,
    "l": 79.608
  },
  "oklch": {
    "l": 0.76582,
    "c": 0.15343,
    "h": 306.6
  },
  "luminance": 0.42191
}

Semantic roles & 50–950 ramp

primary
#CC97FF
secondary
#E5F7D4
accent
#E60071
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CC97FF

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

Preview Lab → · Contrast checker → · Palette generator →

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