#CC7AEC#CC7AEC

#CC7AEC is a light, vivid purple. Relative luminance 0.328; OKLCH L 71.1% C 0.179 H 315.8°. Best body text is #000000 at 7.56:1 contrast (WCAG AA passes).

Color values

HEX#CC7AEC
RGBrgb(204, 122, 236)
HSLhsl(283, 75%, 70%)
HSVhsv(283, 48%, 93%)
CMYKcmyk(13.6%, 48.3%, 0%, 7.5%)
CIE-LABlab(64.01, 50.52, -44.90)
CIE-LCHlch(64.01, 67.58, 318.37°)
OKLaboklab(71.07% 0.1284 -0.1247)
OKLCHoklch(71.07% 0.179 315.8)
XYZxyz(46.9994, 32.8139, 83.1985)
Luminance0.3281 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7AEC #9AEC7A
analogous
#937AEC #CC7AEC #EC7AD3
triadic
#CC7AEC #ECCC7A #7AECCC
tetradic
#CC7AEC #EC937A #9AEC7A #7AD3EC
square
#CC7AEC #EC937A #9AEC7A #7AD3EC
split-complementary
#CC7AEC #D3EC7A #7AEC93
monochromatic
#9D1DCE #B744E4 #CC7AEC #E1B0F4 #F5E4FB

Accessibility & contrast

On white

2.78
#CC7AEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.56
#CC7AEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7AEC
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7AEC#FFFFFF#000000##000000
##CC7AEC1.002.787.567.56
#FFFFFF2.781.0021.0021.00
#0000007.5621.001.001.00
##0000007.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6396F0
Deuteranopia (green-blind)
#7B9EE9
Tritanopia (blue-blind)
#CA8BA8
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #cc7aec;
/* rgb */ color: rgb(204, 122, 236);
/* oklch */ color: oklch(71.1% 0.179 315.8);
Tailwind
colors: {
  custom: {
    50: '#dea3f2',
    500: '#cc7aec',
    950: '#000000',
  },
}
SCSS
$custom: #cc7aec;
$custom-light: #dea3f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7aec",
  "rgb": {
    "r": 204,
    "g": 122,
    "b": 236
  },
  "hsl": {
    "h": 283.158,
    "s": 75,
    "l": 70.196
  },
  "oklch": {
    "l": 0.71066,
    "c": 0.17896,
    "h": 315.8
  },
  "luminance": 0.32813
}

Semantic roles & 50–950 ramp

primary
#CC7AEC
secondary
#DAF1D1
accent
#D70E47
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CC7AEC

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

Preview Lab → · Contrast checker → · Palette generator →

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