#CC97F8#CC97F8

#CC97F8 is a light, vivid violet. Relative luminance 0.417; OKLCH L 76.3% C 0.145 H 308.4°. Best body text is #000000 at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#CC97F8
RGBrgb(204, 151, 248)
HSLhsl(273, 87%, 78%)
HSVhsv(273, 39%, 97%)
CMYKcmyk(17.7%, 39.1%, 0%, 2.7%)
CIE-LABlab(70.70, 37.61, -41.00)
CIE-LCHlch(70.70, 55.64, 312.53°)
OKLaboklab(76.25% 0.0901 -0.1136)
OKLCHoklch(76.25% 0.145 308.4)
XYZxyz(52.9085, 41.7485, 94.0597)
Luminance0.4175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC97F8 #C3F897
analogous
#9B97F8 #CC97F8 #F897F3
triadic
#CC97F8 #F8CC97 #97F8CC
tetradic
#CC97F8 #F89B97 #C3F897 #97F3F8
square
#CC97F8 #F89B97 #C3F897 #97F3F8
split-complementary
#CC97F8 #F3F897 #97F89B
monochromatic
#9424F0 #B05EF4 #CC97F8 #E8D0FC #F1E2FD

Accessibility & contrast

On white

2.25
#CC97F8 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.35
#CC97F8 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC97F8
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC97F8#FFFFFF#000000##000000
##CC97F81.002.259.359.35
#FFFFFF2.251.0021.0021.00
#0000009.3521.001.001.00
##0000009.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#83ABFC
Deuteranopia (green-blind)
#8FAEF5
Tritanopia (blue-blind)
#C6A6BC
Achromatopsia (no color)
#ADADAD

Design tokens & code

CSS
--color: #cc97f8;
/* rgb */ color: rgb(204, 151, 248);
/* oklch */ color: oklch(76.3% 0.145 308.4);
Tailwind
colors: {
  custom: {
    50: '#ddb6fb',
    500: '#cc97f8',
    950: '#000000',
  },
}
SCSS
$custom: #cc97f8;
$custom-light: #ddb6fb;
$custom-dark: #000000;
JSON
{
  "hex": "#cc97f8",
  "rgb": {
    "r": 204,
    "g": 151,
    "b": 248
  },
  "hsl": {
    "h": 272.784,
    "s": 87.387,
    "l": 78.235
  },
  "oklch": {
    "l": 0.76252,
    "c": 0.14502,
    "h": 308.4
  },
  "luminance": 0.41748
}

Semantic roles & 50–950 ramp

primary
#CC97F8
secondary
#E4F5D6
accent
#E40268
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CC97F8

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

Preview Lab → · Contrast checker → · Palette generator →

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