#CC7EEB#CC7EEB

#CC7EEB is a light, vivid purple. Relative luminance 0.338; OKLCH L 71.6% C 0.171 H 315.7°. Best body text is #000000 at 7.75:1 contrast (WCAG AA passes).

Color values

HEX#CC7EEB
RGBrgb(204, 126, 235)
HSLhsl(283, 73%, 71%)
HSVhsv(283, 46%, 92%)
CMYKcmyk(13.2%, 46.4%, 0%, 7.8%)
CIE-LABlab(64.77, 48.23, -43.15)
CIE-LCHlch(64.77, 64.72, 318.19°)
OKLaboklab(71.62% 0.1227 -0.1197)
OKLCHoklch(71.62% 0.171 315.7)
XYZxyz(47.3558, 33.7586, 82.6026)
Luminance0.3376 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7EEB #9DEB7E
analogous
#957EEB #CC7EEB #EB7ED3
triadic
#CC7EEB #EBCC7E #7EEBCC
tetradic
#CC7EEB #EB957E #9DEB7E #7ED3EB
square
#CC7EEB #EB957E #9DEB7E #7ED3EB
split-complementary
#CC7EEB #D3EB7E #7EEB95
monochromatic
#9D20CF #B749E3 #CC7EEB #E1B3F3 #F5E5FB

Accessibility & contrast

On white

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

On black

7.75
#CC7EEB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7EEB
7.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7EEB#FFFFFF#000000##000000
##CC7EEB1.002.717.757.75
#FFFFFF2.711.0021.0021.00
#0000007.7521.001.001.00
##0000007.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6998EF
Deuteranopia (green-blind)
#7F9FE8
Tritanopia (blue-blind)
#CA8EAA
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cc7eeb;
/* rgb */ color: rgb(204, 126, 235);
/* oklch */ color: oklch(71.6% 0.171 315.7);
Tailwind
colors: {
  custom: {
    50: '#dda5f2',
    500: '#cc7eeb',
    950: '#000000',
  },
}
SCSS
$custom: #cc7eeb;
$custom-light: #dda5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7eeb",
  "rgb": {
    "r": 204,
    "g": 126,
    "b": 235
  },
  "hsl": {
    "h": 282.936,
    "s": 73.154,
    "l": 70.784
  },
  "oklch": {
    "l": 0.71616,
    "c": 0.17142,
    "h": 315.7
  },
  "luminance": 0.33757
}

Semantic roles & 50–950 ramp

primary
#CC7EEB
secondary
#DCF1D4
accent
#D51048
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CC7EEB

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

Preview Lab → · Contrast checker → · Palette generator →

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