#CC7EEF#CC7EEF

#CC7EEF is a light, vivid purple. Relative luminance 0.340; OKLCH L 71.8% C 0.176 H 314.6°. Best body text is #000000 at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#CC7EEF
RGBrgb(204, 126, 239)
HSLhsl(281, 78%, 72%)
HSVhsv(281, 47%, 94%)
CMYKcmyk(14.6%, 47.3%, 0%, 6.3%)
CIE-LABlab(64.96, 49.06, -45.06)
CIE-LCHlch(64.96, 66.61, 317.43°)
OKLaboklab(71.82% 0.1233 -0.1252)
OKLCHoklch(71.82% 0.176 314.6)
XYZxyz(47.9402, 33.9923, 85.6804)
Luminance0.3399 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7EEF #A1EF7E
analogous
#947EEF #CC7EEF #EF7EDA
triadic
#CC7EEF #EFCC7E #7EEFCC
tetradic
#CC7EEF #EF947E #A1EF7E #7EDAEF
square
#CC7EEF #EF947E #A1EF7E #7EDAEF
split-complementary
#CC7EEF #DAEF7E #7EEF94
monochromatic
#9D1BD8 #B648E8 #CC7EEF #E2B4F6 #F4E4FC

Accessibility & contrast

On white

2.69
#CC7EEF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.80
#CC7EEF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7EEF
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7EEF#FFFFFF#000000##000000
##CC7EEF1.002.697.807.80
#FFFFFF2.691.0021.0021.00
#0000007.8021.001.001.00
##0000007.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#6799F3
Deuteranopia (green-blind)
#7DA0EC
Tritanopia (blue-blind)
#CA8FAB
Achromatopsia (no color)
#9E9E9E

Design tokens & code

CSS
--color: #cc7eef;
/* rgb */ color: rgb(204, 126, 239);
/* oklch */ color: oklch(71.8% 0.176 314.6);
Tailwind
colors: {
  custom: {
    50: '#dda5f4',
    500: '#cc7eef',
    950: '#000000',
  },
}
SCSS
$custom: #cc7eef;
$custom-light: #dda5f4;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7eef",
  "rgb": {
    "r": 204,
    "g": 126,
    "b": 239
  },
  "hsl": {
    "h": 281.416,
    "s": 77.931,
    "l": 71.569
  },
  "oklch": {
    "l": 0.71815,
    "c": 0.17573,
    "h": 314.6
  },
  "luminance": 0.33991
}

Semantic roles & 50–950 ramp

primary
#CC7EEF
secondary
#DFF3D6
accent
#DA0B4B
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CC7EEF

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

Preview Lab → · Contrast checker → · Palette generator →

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