#CC7EEA#CC7EEA

#CC7EEA is a light, vivid purple. Relative luminance 0.337; OKLCH L 71.6% C 0.170 H 316.0°. Best body text is #000000 at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#CC7EEA
RGBrgb(204, 126, 234)
HSLhsl(283, 72%, 71%)
HSVhsv(283, 46%, 92%)
CMYKcmyk(12.8%, 46.2%, 0%, 8.2%)
CIE-LABlab(64.72, 48.03, -42.67)
CIE-LCHlch(64.72, 64.24, 318.38°)
OKLaboklab(71.57% 0.1226 -0.1183)
OKLCHoklch(71.57% 0.17 316)
XYZxyz(47.2117, 33.7009, 81.8439)
Luminance0.3370 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7EEA #9CEA7E
analogous
#967EEA #CC7EEA #EA7ED2
triadic
#CC7EEA #EACC7E #7EEACC
tetradic
#CC7EEA #EA967E #9CEA7E #7ED2EA
square
#CC7EEA #EA967E #9CEA7E #7ED2EA
split-complementary
#CC7EEA #D2EA7E #7EEA96
monochromatic
#9D21CC #B749E1 #CC7EEA #E1B3F3 #F5E5FB

Accessibility & contrast

On white

2.71
#CC7EEA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.74
#CC7EEA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7EEA
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7EEA#FFFFFF#000000##000000
##CC7EEA1.002.717.747.74
#FFFFFF2.711.0021.0021.00
#0000007.7421.001.001.00
##0000007.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#6A98EE
Deuteranopia (green-blind)
#7F9FE7
Tritanopia (blue-blind)
#CB8DA9
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cc7eea;
/* rgb */ color: rgb(204, 126, 234);
/* oklch */ color: oklch(71.6% 0.170 316.0);
Tailwind
colors: {
  custom: {
    50: '#dda5f1',
    500: '#cc7eea',
    950: '#000000',
  },
}
SCSS
$custom: #cc7eea;
$custom-light: #dda5f1;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7eea",
  "rgb": {
    "r": 204,
    "g": 126,
    "b": 234
  },
  "hsl": {
    "h": 283.333,
    "s": 72,
    "l": 70.588
  },
  "oklch": {
    "l": 0.71567,
    "c": 0.17034,
    "h": 316
  },
  "luminance": 0.337
}

Semantic roles & 50–950 ramp

primary
#CC7EEA
secondary
#DBF1D3
accent
#D41148
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CC7EEA

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

Preview Lab → · Contrast checker → · Palette generator →

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