#CC97FE#CC97FE

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

Color values

HEX#CC97FE
RGBrgb(204, 151, 254)
HSLhsl(271, 98%, 79%)
HSVhsv(271, 41%, 100%)
CMYKcmyk(19.7%, 40.6%, 0%, 0.4%)
CIE-LABlab(70.96, 38.92, -43.85)
CIE-LCHlch(70.96, 58.64, 311.59°)
OKLaboklab(76.53% 0.0913 -0.1218)
OKLCHoklch(76.53% 0.152 306.8)
XYZxyz(53.8543, 42.1268, 99.0409)
Luminance0.4213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC97FE #C9FE97
analogous
#9997FE #CC97FE #FE97FC
triadic
#CC97FE #FECC97 #97FECC
tetradic
#CC97FE #FE9997 #C9FE97 #97FCFE
square
#CC97FE #FE9997 #C9FE97 #97FCFE
split-complementary
#CC97FE #FCFE97 #97FE99
monochromatic
#911EFD #AE5AFD #CC97FE #EAD4FF #F0E1FF

Accessibility & contrast

On white

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

On black

9.43
#CC97FE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC97FE
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC97FE#FFFFFF#000000##000000
##CC97FE1.002.239.439.43
#FFFFFF2.231.0021.0021.00
#0000009.4321.001.001.00
##0000009.4321.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cc97fe;
/* rgb */ color: rgb(204, 151, 254);
/* oklch */ color: oklch(76.5% 0.152 306.8);
Tailwind
colors: {
  custom: {
    50: '#ddb6ff',
    500: '#cc97fe',
    950: '#000000',
  },
}
SCSS
$custom: #cc97fe;
$custom-light: #ddb6ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cc97fe",
  "rgb": {
    "r": 204,
    "g": 151,
    "b": 254
  },
  "hsl": {
    "h": 270.874,
    "s": 98.095,
    "l": 79.412
  },
  "oklch": {
    "l": 0.76534,
    "c": 0.15223,
    "h": 306.8
  },
  "luminance": 0.42126
}

Semantic roles & 50–950 ramp

primary
#CC97FE
secondary
#E5F7D4
accent
#E6006F
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151118
muted
#838086

Preview Lab

Preview with #CC97FE

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

Preview Lab → · Contrast checker → · Palette generator →

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