#CC7AEE#CC7AEE

#CC7AEE is a light, vivid purple. Relative luminance 0.329; OKLCH L 71.2% C 0.181 H 315.3°. Best body text is #000000 at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#CC7AEE
RGBrgb(204, 122, 238)
HSLhsl(282, 77%, 71%)
HSVhsv(282, 49%, 93%)
CMYKcmyk(14.3%, 48.7%, 0%, 6.7%)
CIE-LABlab(64.10, 50.92, -45.85)
CIE-LCHlch(64.10, 68.53, 318.00°)
OKLaboklab(71.17% 0.1286 -0.1275)
OKLCHoklch(71.17% 0.181 315.3)
XYZxyz(47.2916, 32.9308, 84.7374)
Luminance0.3293 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7AEE #9CEE7A
analogous
#927AEE #CC7AEE #EE7AD6
triadic
#CC7AEE #EECC7A #7AEECC
tetradic
#CC7AEE #EE927A #9CEE7A #7AD6EE
square
#CC7AEE #EE927A #9CEE7A #7AD6EE
split-complementary
#CC7AEE #D6EE7A #7AEE92
monochromatic
#9D1BD3 #B744E7 #CC7AEE #E1B0F5 #F5E4FC

Accessibility & contrast

On white

2.77
#CC7AEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.59
#CC7AEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7AEE
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7AEE#FFFFFF#000000##000000
##CC7AEE1.002.777.597.59
#FFFFFF2.771.0021.0021.00
#0000007.5921.001.001.00
##0000007.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6296F2
Deuteranopia (green-blind)
#7A9EEB
Tritanopia (blue-blind)
#CA8BA9
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #cc7aee;
/* rgb */ color: rgb(204, 122, 238);
/* oklch */ color: oklch(71.2% 0.181 315.3);
Tailwind
colors: {
  custom: {
    50: '#dea3f4',
    500: '#cc7aee',
    950: '#000000',
  },
}
SCSS
$custom: #cc7aee;
$custom-light: #dea3f4;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7aee",
  "rgb": {
    "r": 204,
    "g": 122,
    "b": 238
  },
  "hsl": {
    "h": 282.414,
    "s": 77.333,
    "l": 70.588
  },
  "oklch": {
    "l": 0.71167,
    "c": 0.18108,
    "h": 315.3
  },
  "luminance": 0.32929
}

Semantic roles & 50–950 ramp

primary
#CC7AEE
secondary
#DBF2D2
accent
#DA0C48
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CC7AEE

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

Preview Lab → · Contrast checker → · Palette generator →

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