#CC97FA#CC97FA

#CC97FA is a light, vivid violet. Relative luminance 0.419; OKLCH L 76.3% C 0.147 H 307.9°. Best body text is #000000 at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#CC97FA
RGBrgb(204, 151, 250)
HSLhsl(272, 91%, 79%)
HSVhsv(272, 40%, 98%)
CMYKcmyk(18.4%, 39.6%, 0%, 2%)
CIE-LABlab(70.78, 38.05, -41.95)
CIE-LCHlch(70.78, 56.64, 312.20°)
OKLaboklab(76.35% 0.0905 -0.1163)
OKLCHoklch(76.35% 0.147 307.9)
XYZxyz(53.2205, 41.8732, 95.7026)
Luminance0.4187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC97FA #C5FA97
analogous
#9A97FA #CC97FA #FA97F7
triadic
#CC97FA #FACC97 #97FACC
tetradic
#CC97FA #FA9A97 #C5FA97 #97F7FA
square
#CC97FA #FA9A97 #C5FA97 #97F7FA
split-complementary
#CC97FA #F7FA97 #97FA9A
monochromatic
#9322F4 #AF5DF7 #CC97FA #E9D1FD #F1E2FE

Accessibility & contrast

On white

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

On black

9.37
#CC97FA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC97FA
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC97FA#FFFFFF#000000##000000
##CC97FA1.002.249.379.37
#FFFFFF2.241.0021.0021.00
#0000009.3721.001.001.00
##0000009.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#82ABFE
Deuteranopia (green-blind)
#8EAEF7
Tritanopia (blue-blind)
#C6A6BD
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cc97fa;
/* rgb */ color: rgb(204, 151, 250);
/* oklch */ color: oklch(76.3% 0.147 307.9);
Tailwind
colors: {
  custom: {
    50: '#ddb6fc',
    500: '#cc97fa',
    950: '#000000',
  },
}
SCSS
$custom: #cc97fa;
$custom-light: #ddb6fc;
$custom-dark: #000000;
JSON
{
  "hex": "#cc97fa",
  "rgb": {
    "r": 204,
    "g": 151,
    "b": 250
  },
  "hsl": {
    "h": 272.121,
    "s": 90.826,
    "l": 78.627
  },
  "oklch": {
    "l": 0.76345,
    "c": 0.14741,
    "h": 307.9
  },
  "luminance": 0.41873
}

Semantic roles & 50–950 ramp

primary
#CC97FA
secondary
#E4F6D5
accent
#E6006B
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CC97FA

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

Preview Lab → · Contrast checker → · Palette generator →

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