#CC7EDE#CC7EDE

#CC7EDE is a light, vivid purple. Relative luminance 0.330; OKLCH L 71.0% C 0.158 H 319.9°. Best body text is #000000 at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#CC7EDE
RGBrgb(204, 126, 222)
HSLhsl(289, 59%, 68%)
HSVhsv(289, 43%, 87%)
CMYKcmyk(8.1%, 43.2%, 0%, 12.9%)
CIE-LABlab(64.19, 45.63, -36.84)
CIE-LCHlch(64.19, 58.64, 321.08°)
OKLaboklab(70.99% 0.1206 -0.1015)
OKLCHoklch(70.99% 0.158 319.9)
XYZxyz(45.5459, 33.0346, 73.0702)
Luminance0.3303 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7EDE #90DE7E
analogous
#9C7EDE #CC7EDE #DE7EC0
triadic
#CC7EDE #DECC7E #7EDECC
tetradic
#CC7EDE #DE9C7E #90DE7E #7EC0DE
square
#CC7EDE #DE9C7E #90DE7E #7EC0DE
split-complementary
#CC7EDE #C0DE7E #7EDE9C
monochromatic
#9B2EB4 #B94DD2 #CC7EDE #DFAFEA #F3DFF7

Accessibility & contrast

On white

2.76
#CC7EDE on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.61
#CC7EDE on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7EDE
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7EDE#FFFFFF#000000##000000
##CC7EDE1.002.767.617.61
#FFFFFF2.761.0021.0021.00
#0000007.6121.001.001.00
##0000007.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#7096E1
Deuteranopia (green-blind)
#859EDB
Tritanopia (blue-blind)
#CD8AA4
Achromatopsia (no color)
#9C9C9C

Design tokens & code

CSS
--color: #cc7ede;
/* rgb */ color: rgb(204, 126, 222);
/* oklch */ color: oklch(71.0% 0.158 319.9);
Tailwind
colors: {
  custom: {
    50: '#dda5e8',
    500: '#cc7ede',
    950: '#000000',
  },
}
SCSS
$custom: #cc7ede;
$custom-light: #dda5e8;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7ede",
  "rgb": {
    "r": 204,
    "g": 126,
    "b": 222
  },
  "hsl": {
    "h": 288.75,
    "s": 59.259,
    "l": 68.235
  },
  "oklch": {
    "l": 0.70992,
    "c": 0.15766,
    "h": 319.9
  },
  "luminance": 0.33033
}

Semantic roles & 50–950 ramp

primary
#CC7EDE
secondary
#D3EACD
accent
#C71F3E
background
#FDFAFE
surface
#FBF4FC
border
#D4CED5
text
#150F16
muted
#837F84

Preview Lab

Preview with #CC7EDE

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

Preview Lab → · Contrast checker → · Palette generator →

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