#CC7AEA#CC7AEA

#CC7AEA is a light, vivid purple. Relative luminance 0.327; OKLCH L 71.0% C 0.177 H 316.4°. Best body text is #000000 at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#CC7AEA
RGBrgb(204, 122, 234)
HSLhsl(284, 73%, 70%)
HSVhsv(284, 48%, 92%)
CMYKcmyk(12.8%, 47.9%, 0%, 8.2%)
CIE-LABlab(63.92, 50.11, -43.94)
CIE-LCHlch(63.92, 66.64, 318.75°)
OKLaboklab(70.97% 0.1281 -0.1219)
OKLCHoklch(70.97% 0.177 316.4)
XYZxyz(46.7105, 32.6984, 81.6768)
Luminance0.3270 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7AEA #98EA7A
analogous
#947AEA #CC7AEA #EA7AD0
triadic
#CC7AEA #EACC7A #7AEACC
tetradic
#CC7AEA #EA947A #98EA7A #7AD0EA
square
#CC7AEA #EA947A #98EA7A #7AD0EA
split-complementary
#CC7AEA #D0EA7A #7AEA94
monochromatic
#9C20CA #B845E2 #CC7AEA #E0AFF2 #F5E4FB

Accessibility & contrast

On white

2.79
#CC7AEA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.54
#CC7AEA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7AEA
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7AEA#FFFFFF#000000##000000
##CC7AEA1.002.797.547.54
#FFFFFF2.791.0021.0021.00
#0000007.5421.001.001.00
##0000007.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6496EE
Deuteranopia (green-blind)
#7C9DE7
Tritanopia (blue-blind)
#CB8AA7
Achromatopsia (no color)
#9B9B9B

Design tokens & code

CSS
--color: #cc7aea;
/* rgb */ color: rgb(204, 122, 234);
/* oklch */ color: oklch(71.0% 0.177 316.4);
Tailwind
colors: {
  custom: {
    50: '#dda3f1',
    500: '#cc7aea',
    950: '#000000',
  },
}
SCSS
$custom: #cc7aea;
$custom-light: #dda3f1;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7aea",
  "rgb": {
    "r": 204,
    "g": 122,
    "b": 234
  },
  "hsl": {
    "h": 283.929,
    "s": 72.727,
    "l": 69.804
  },
  "oklch": {
    "l": 0.70965,
    "c": 0.17684,
    "h": 316.4
  },
  "luminance": 0.32697
}

Semantic roles & 50–950 ramp

primary
#CC7AEA
secondary
#D9F0D0
accent
#D51145
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CC7AEA

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

Preview Lab → · Contrast checker → · Palette generator →

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