#CC9CF9#CC9CF9

#CC9CF9 is a light, vivid violet. Relative luminance 0.435; OKLCH L 77.1% C 0.138 H 307.2°. Best body text is #000000 at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#CC9CF9
RGBrgb(204, 156, 249)
HSLhsl(271, 89%, 79%)
HSVhsv(271, 37%, 98%)
CMYKcmyk(18.1%, 37.3%, 0%, 2.4%)
CIE-LABlab(71.86, 35.11, -39.73)
CIE-LCHlch(71.86, 53.02, 311.47°)
OKLaboklab(77.15% 0.0833 -0.11)
OKLCHoklch(77.15% 0.138 307.2)
XYZxyz(53.8859, 43.4543, 95.1529)
Luminance0.4345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC9CF9 #C9F99C
analogous
#9E9CF9 #CC9CF9 #F99CF7
triadic
#CC9CF9 #F9CC9C #9CF9CC
tetradic
#CC9CF9 #F99E9C #C9F99C #9CF7F9
square
#CC9CF9 #F99E9C #C9F99C #9CF7F9
split-complementary
#CC9CF9 #F7F99C #9CF99E
monochromatic
#9129F2 #AE62F6 #CC9CF9 #EAD6FC #F0E2FD

Accessibility & contrast

On white

2.17
#CC9CF9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.69
#CC9CF9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC9CF9
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC9CF9#FFFFFF#000000##000000
##CC9CF91.002.179.699.69
#FFFFFF2.171.0021.0021.00
#0000009.6921.001.001.00
##0000009.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#88AEFD
Deuteranopia (green-blind)
#93B1F6
Tritanopia (blue-blind)
#C6AABF
Achromatopsia (no color)
#B0B0B0

Design tokens & code

CSS
--color: #cc9cf9;
/* rgb */ color: rgb(204, 156, 249);
/* oklch */ color: oklch(77.1% 0.138 307.2);
Tailwind
colors: {
  custom: {
    50: '#ddbafb',
    500: '#cc9cf9',
    950: '#000000',
  },
}
SCSS
$custom: #cc9cf9;
$custom-light: #ddbafb;
$custom-dark: #000000;
JSON
{
  "hex": "#cc9cf9",
  "rgb": {
    "r": 204,
    "g": 156,
    "b": 249
  },
  "hsl": {
    "h": 270.968,
    "s": 88.571,
    "l": 79.412
  },
  "oklch": {
    "l": 0.77147,
    "c": 0.13798,
    "h": 307.2
  },
  "luminance": 0.43454
}

Semantic roles & 50–950 ramp

primary
#CC9CF9
secondary
#E5F5D6
accent
#E5006F
background
#FDFBFF
surface
#FBF6FF
border
#D4D0D7
text
#151117
muted
#838085

Preview Lab

Preview with #CC9CF9

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

Preview Lab → · Contrast checker → · Palette generator →

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