#CC7DEC#CC7DEC

#CC7DEC is a light, vivid purple. Relative luminance 0.336; OKLCH L 71.5% C 0.174 H 315.5°. Best body text is #000000 at 7.71:1 contrast (WCAG AA passes).

Color values

HEX#CC7DEC
RGBrgb(204, 125, 236)
HSLhsl(283, 74%, 71%)
HSVhsv(283, 47%, 93%)
CMYKcmyk(13.6%, 47%, 0%, 7.5%)
CIE-LABlab(64.61, 48.96, -43.95)
CIE-LCHlch(64.61, 65.79, 318.09°)
OKLaboklab(71.51% 0.1243 -0.122)
OKLCHoklch(71.51% 0.174 315.5)
XYZxyz(47.3735, 33.5621, 83.3232)
Luminance0.3356 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC7DEC #9DEC7D
analogous
#947DEC #CC7DEC #EC7DD4
triadic
#CC7DEC #ECCC7D #7DECCC
tetradic
#CC7DEC #EC947D #9DEC7D #7DD4EC
square
#CC7DEC #EC947D #9DEC7D #7DD4EC
split-complementary
#CC7DEC #D4EC7D #7DEC94
monochromatic
#9D1ED0 #B748E4 #CC7DEC #E1B2F4 #F5E4FB

Accessibility & contrast

On white

2.72
#CC7DEC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.71
#CC7DEC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #CC7DEC
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC7DEC#FFFFFF#000000##000000
##CC7DEC1.002.727.717.71
#FFFFFF2.721.0021.0021.00
#0000007.7121.001.001.00
##0000007.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#6798F0
Deuteranopia (green-blind)
#7E9FE9
Tritanopia (blue-blind)
#CA8DAA
Achromatopsia (no color)
#9D9D9D

Design tokens & code

CSS
--color: #cc7dec;
/* rgb */ color: rgb(204, 125, 236);
/* oklch */ color: oklch(71.5% 0.174 315.5);
Tailwind
colors: {
  custom: {
    50: '#dda5f2',
    500: '#cc7dec',
    950: '#000000',
  },
}
SCSS
$custom: #cc7dec;
$custom-light: #dda5f2;
$custom-dark: #000000;
JSON
{
  "hex": "#cc7dec",
  "rgb": {
    "r": 204,
    "g": 125,
    "b": 236
  },
  "hsl": {
    "h": 282.703,
    "s": 74.497,
    "l": 70.784
  },
  "oklch": {
    "l": 0.71514,
    "c": 0.17412,
    "h": 315.5
  },
  "luminance": 0.33561
}

Semantic roles & 50–950 ramp

primary
#CC7DEC
secondary
#DCF1D3
accent
#D70F48
background
#FDFAFE
surface
#FBF4FD
border
#D4CED5
text
#150F17
muted
#837F85

Preview Lab

Preview with #CC7DEC

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

Preview Lab → · Contrast checker → · Palette generator →

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