#CC7EE2#CC7EE2

#CC7EE2 is a light, vivid purple. Relative luminance 0.333; OKLCH L 71.2% C 0.162 H 318.6°. Best body text is #000000 at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#CC7EE2
RGBrgb(204, 126, 226)
HSLhsl(287, 63%, 69%)
HSVhsv(287, 44%, 89%)
CMYKcmyk(9.7%, 44.2%, 0%, 11.4%)
CIE-LABlab(64.36, 46.42, -38.80)
CIE-LCHlch(64.36, 60.50, 320.11°)
OKLaboklab(71.18% 0.1213 -0.1071)
OKLCHoklch(71.18% 0.162 318.6)
XYZxyz(46.0883, 33.2516, 75.9272)
Luminance0.3325 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7EE2 #94E27E
analogous
#9A7EE2 #CC7EE2 #E27EC6
triadic
#CC7EE2 #E2CC7E #7EE2CC
tetradic
#CC7EE2 #E29A7E #94E27E #7EC6E2
square
#CC7EE2 #E29A7E #94E27E #7EC6E2
split-complementary
#CC7EE2 #C6E27E #7EE29A
monochromatic
#9B2ABB #B84CD7 #CC7EE2 #E0B0ED #F4E2F8

Accessibility & contrast

On white

2.75
#CC7EE2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.65
#CC7EE2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7EE2
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7EE2#FFFFFF#000000##000000
##CC7EE21.002.757.657.65
#FFFFFF2.751.0021.0021.00
#0000007.6521.001.001.00
##0000007.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E97E6
Deuteranopia (green-blind)
#839FDF
Tritanopia (blue-blind)
#CC8BA5
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #cc7ee2;
/* rgb */ color: rgb(204, 126, 226);
/* oklch */ color: oklch(71.2% 0.162 318.6);
Tailwind
colors: {
  custom: {
    50: '#dda5eb',
    500: '#cc7ee2',
    950: '#000000',
  },
}
SCSS
$custom: #cc7ee2;
$custom-light: #dda5eb;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7ee2",
  "rgb": {
    "r": 204,
    "g": 126,
    "b": 226
  },
  "hsl": {
    "h": 286.8,
    "s": 63.291,
    "l": 69.02
  },
  "oklch": {
    "l": 0.7118,
    "c": 0.16184,
    "h": 318.6
  },
  "luminance": 0.3325
}

Semantic roles & 50–950 ramp

primary
#CC7EE2
secondary
#D6EDCF
accent
#CB1A41
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F16
muted
#837F84

Preview Lab

Preview with #CC7EE2

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

Preview Lab → · Contrast checker → · Palette generator →

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