#CC97ED#CC97ED

#CC97ED is a light, vivid violet. Relative luminance 0.411; OKLCH L 75.8% C 0.132 H 311.7°. Best body text is #000000 at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#CC97ED
RGBrgb(204, 151, 237)
HSLhsl(277, 70%, 76%)
HSVhsv(277, 36%, 93%)
CMYKcmyk(13.9%, 36.3%, 0%, 7.1%)
CIE-LABlab(70.24, 35.26, -35.71)
CIE-LCHlch(70.24, 50.19, 314.63°)
OKLaboklab(75.75% 0.0878 -0.0984)
OKLCHoklch(75.75% 0.132 311.7)
XYZxyz(51.2519, 41.0858, 85.3348)
Luminance0.4108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC97ED #B8ED97
analogous
#A197ED #CC97ED #ED97E3
triadic
#CC97ED #EDCC97 #97EDCC
tetradic
#CC97ED #EDA197 #B8ED97 #97E3ED
square
#CC97ED #EDA197 #B8ED97 #97E3ED
split-complementary
#CC97ED #E3ED97 #97EDA1
monochromatic
#992FDB #B263E4 #CC97ED #E6CBF6 #F2E5FA

Accessibility & contrast

On white

2.28
#CC97ED on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.22
#CC97ED on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC97ED
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC97ED#FFFFFF#000000##000000
##CC97ED1.002.289.229.22
#FFFFFF2.281.0021.0021.00
#0000009.2221.001.001.00
##0000009.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#87A9F0
Deuteranopia (green-blind)
#94ADEA
Tritanopia (blue-blind)
#C9A3B7
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #cc97ed;
/* rgb */ color: rgb(204, 151, 237);
/* oklch */ color: oklch(75.8% 0.132 311.7);
Tailwind
colors: {
  custom: {
    50: '#dcb6f3',
    500: '#cc97ed',
    950: '#000000',
  },
}
SCSS
$custom: #cc97ed;
$custom-light: #dcb6f3;
$custom-dark: #000000;
JSON
{
  "hex": "#cc97ed",
  "rgb": {
    "r": 204,
    "g": 151,
    "b": 237
  },
  "hsl": {
    "h": 276.977,
    "s": 70.492,
    "l": 76.078
  },
  "oklch": {
    "l": 0.75751,
    "c": 0.13192,
    "h": 311.7
  },
  "luminance": 0.41085
}

Semantic roles & 50–950 ramp

primary
#CC97ED
secondary
#E3F2D9
accent
#D3135C
background
#FDFBFE
surface
#FBF6FD
border
#D4D0D5
text
#151117
muted
#838085

Preview Lab

Preview with #CC97ED

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

Preview Lab → · Contrast checker → · Palette generator →

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