#CC7EEE#CC7EEE

#CC7EEE is a light, vivid purple. Relative luminance 0.339; OKLCH L 71.8% C 0.175 H 314.8°. Best body text is #000000 at 7.79:1 contrast (WCAG AA passes).

Color values

HEX#CC7EEE
RGBrgb(204, 126, 238)
HSLhsl(282, 77%, 71%)
HSVhsv(282, 47%, 93%)
CMYKcmyk(14.3%, 47.1%, 0%, 6.7%)
CIE-LABlab(64.91, 48.85, -44.59)
CIE-LCHlch(64.91, 66.14, 317.61°)
OKLaboklab(71.77% 0.1232 -0.1238)
OKLCHoklch(71.77% 0.175 314.8)
XYZxyz(47.7929, 33.9334, 84.9045)
Luminance0.3393 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7EEE #A0EE7E
analogous
#947EEE #CC7EEE #EE7ED8
triadic
#CC7EEE #EECC7E #7EEECC
tetradic
#CC7EEE #EE947E #A0EE7E #7ED8EE
square
#CC7EEE #EE947E #A0EE7E #7ED8EE
split-complementary
#CC7EEE #D8EE7E #7EEE94
monochromatic
#9D1CD5 #B748E7 #CC7EEE #E1B4F5 #F4E4FB

Accessibility & contrast

On white

2.70
#CC7EEE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.79
#CC7EEE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7EEE
7.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7EEE#FFFFFF#000000##000000
##CC7EEE1.002.707.797.79
#FFFFFF2.701.0021.0021.00
#0000007.7921.001.001.00
##0000007.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#6799F2
Deuteranopia (green-blind)
#7DA0EB
Tritanopia (blue-blind)
#CA8FAB
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cc7eee;
/* rgb */ color: rgb(204, 126, 238);
/* oklch */ color: oklch(71.8% 0.175 314.8);
Tailwind
colors: {
  custom: {
    50: '#dda5f4',
    500: '#cc7eee',
    950: '#000000',
  },
}
SCSS
$custom: #cc7eee;
$custom-light: #dda5f4;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7eee",
  "rgb": {
    "r": 204,
    "g": 126,
    "b": 238
  },
  "hsl": {
    "h": 281.786,
    "s": 76.712,
    "l": 71.373
  },
  "oklch": {
    "l": 0.71765,
    "c": 0.17464,
    "h": 314.8
  },
  "luminance": 0.33932
}

Semantic roles & 50–950 ramp

primary
#CC7EEE
secondary
#DEF2D5
accent
#D90D4B
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CC7EEE

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

Preview Lab → · Contrast checker → · Palette generator →

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