#CC6AFE#CC6AFE

#CC6AFE is a light, highly saturated violet. Relative luminance 0.303; OKLCH L 69.8% C 0.222 H 312.6°. Best body text is #000000 at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#CC6AFE
RGBrgb(204, 106, 254)
HSLhsl(280, 99%, 71%)
HSVhsv(280, 58%, 100%)
CMYKcmyk(19.7%, 58.3%, 0%, 0.4%)
CIE-LABlab(61.91, 62.17, -58.15)
CIE-LCHlch(61.91, 85.13, 316.91°)
OKLaboklab(69.82% 0.1502 -0.1632)
OKLCHoklch(69.82% 0.222 312.6)
XYZxyz(47.9421, 30.3024, 97.0702)
Luminance0.3030 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC6AFE #9CFE6A
analogous
#826AFE #CC6AFE #FE6AE6
triadic
#CC6AFE #FECC6A #6AFECC
tetradic
#CC6AFE #FE826A #9CFE6A #6AE6FE
square
#CC6AFE #FE826A #9CFE6A #6AE6FE
split-complementary
#CC6AFE #E6FE6A #6AFE82
monochromatic
#9D02EC #B72DFE #CC6AFE #E1A7FE #F5E1FF

Accessibility & contrast

On white

2.97
#CC6AFE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.06
#CC6AFE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC6AFE
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC6AFE#FFFFFF#000000##000000
##CC6AFE1.002.977.067.06
#FFFFFF2.971.0021.0021.00
#0000007.0621.001.001.00
##0000007.0621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3990FF
Deuteranopia (green-blind)
#6198FA
Tritanopia (blue-blind)
#C785AA
Achromatopsia (no color)
#969696

Design tokens & code

CSS
--color: #cc6afe;
/* rgb */ color: rgb(204, 106, 254);
/* oklch */ color: oklch(69.8% 0.222 312.6);
Tailwind
colors: {
  custom: {
    50: '#df99ff',
    500: '#cc6afe',
    950: '#000000',
  },
}
SCSS
$custom: #cc6afe;
$custom-light: #df99ff;
$custom-dark: #000000;
JSON
{
  "hex": "#cc6afe",
  "rgb": {
    "r": 204,
    "g": 106,
    "b": 254
  },
  "hsl": {
    "h": 279.73,
    "s": 98.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.69822,
    "c": 0.22183,
    "h": 312.6
  },
  "luminance": 0.30301
}

Semantic roles & 50–950 ramp

primary
#CC6AFE
secondary
#DBF6CE
accent
#E6004E
background
#FEF9FF
surface
#FCF2FF
border
#D5CCD7
text
#160E18
muted
#847E86

Preview Lab

Preview with #CC6AFE

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

Preview Lab → · Contrast checker → · Palette generator →

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