#CC97FB#CC97FB

#CC97FB is a light, vivid violet. Relative luminance 0.419; OKLCH L 76.4% C 0.149 H 307.6°. Best body text is #000000 at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#CC97FB
RGBrgb(204, 151, 251)
HSLhsl(272, 93%, 79%)
HSVhsv(272, 40%, 98%)
CMYKcmyk(18.7%, 39.8%, 0%, 1.6%)
CIE-LABlab(70.83, 38.27, -42.43)
CIE-LCHlch(70.83, 57.14, 312.05°)
OKLaboklab(76.39% 0.0907 -0.1177)
OKLCHoklch(76.39% 0.149 307.6)
XYZxyz(53.3777, 41.9361, 96.5306)
Luminance0.4194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC97FB #C6FB97
analogous
#9A97FB #CC97FB #FB97F8
triadic
#CC97FB #FBCC97 #97FBCC
tetradic
#CC97FB #FB9A97 #C6FB97 #97F8FB
square
#CC97FB #FB9A97 #C6FB97 #97F8FB
split-complementary
#CC97FB #F8FB97 #97FB9A
monochromatic
#9221F6 #AF5CF9 #CC97FB #E9D2FD #F1E2FE

Accessibility & contrast

On white

2.24
#CC97FB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.39
#CC97FB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC97FB
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC97FB#FFFFFF#000000##000000
##CC97FB1.002.249.399.39
#FFFFFF2.241.0021.0021.00
#0000009.3921.001.001.00
##0000009.3921.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #cc97fb;
/* rgb */ color: rgb(204, 151, 251);
/* oklch */ color: oklch(76.4% 0.149 307.6);
Tailwind
colors: {
  custom: {
    50: '#ddb6fd',
    500: '#cc97fb',
    950: '#000000',
  },
}
SCSS
$custom: #cc97fb;
$custom-light: #ddb6fd;
$custom-dark: #000000;
JSON
{
  "hex": "#cc97fb",
  "rgb": {
    "r": 204,
    "g": 151,
    "b": 251
  },
  "hsl": {
    "h": 271.8,
    "s": 92.593,
    "l": 78.824
  },
  "oklch": {
    "l": 0.76392,
    "c": 0.14862,
    "h": 307.6
  },
  "luminance": 0.41936
}

Semantic roles & 50–950 ramp

primary
#CC97FB
secondary
#E5F6D5
accent
#E6006C
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CC97FB

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

Preview Lab → · Contrast checker → · Palette generator →

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