#CC7EEC#CC7EEC

#CC7EEC is a light, vivid purple. Relative luminance 0.338; OKLCH L 71.7% C 0.172 H 315.4°. Best body text is #000000 at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#CC7EEC
RGBrgb(204, 126, 236)
HSLhsl(283, 74%, 71%)
HSVhsv(283, 47%, 93%)
CMYKcmyk(13.6%, 46.6%, 0%, 7.5%)
CIE-LABlab(64.82, 48.44, -43.63)
CIE-LCHlch(64.82, 65.19, 317.99°)
OKLaboklab(71.67% 0.1229 -0.1211)
OKLCHoklch(71.67% 0.172 315.4)
XYZxyz(47.5007, 33.8165, 83.3656)
Luminance0.3382 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7EEC #9EEC7E
analogous
#957EEC #CC7EEC #EC7ED5
triadic
#CC7EEC #ECCC7E #7EECCC
tetradic
#CC7EEC #EC957E #9EEC7E #7ED5EC
square
#CC7EEC #EC957E #9EEC7E #7ED5EC
split-complementary
#CC7EEC #D5EC7E #7EEC95
monochromatic
#9D1FD1 #B749E4 #CC7EEC #E1B3F4 #F4E4FB

Accessibility & contrast

On white

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

On black

7.76
#CC7EEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7EEC
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7EEC#FFFFFF#000000##000000
##CC7EEC1.002.717.767.76
#FFFFFF2.711.0021.0021.00
#0000007.7621.001.001.00
##0000007.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#6899F0
Deuteranopia (green-blind)
#7EA0E9
Tritanopia (blue-blind)
#CA8EAA
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cc7eec;
/* rgb */ color: rgb(204, 126, 236);
/* oklch */ color: oklch(71.7% 0.172 315.4);
Tailwind
colors: {
  custom: {
    50: '#dda5f2',
    500: '#cc7eec',
    950: '#000000',
  },
}
SCSS
$custom: #cc7eec;
$custom-light: #dda5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7eec",
  "rgb": {
    "r": 204,
    "g": 126,
    "b": 236
  },
  "hsl": {
    "h": 282.545,
    "s": 74.324,
    "l": 70.98
  },
  "oklch": {
    "l": 0.71666,
    "c": 0.17249,
    "h": 315.4
  },
  "luminance": 0.33815
}

Semantic roles & 50–950 ramp

primary
#CC7EEC
secondary
#DDF2D4
accent
#D60F49
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CC7EEC

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

Preview Lab → · Contrast checker → · Palette generator →

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