#CC2DC7#CC2DC7

#CC2DC7 is a mid, highly saturated purple. Relative luminance 0.188; OKLCH L 60.6% C 0.248 H 329.5°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#CC2DC7
RGBrgb(204, 45, 199)
HSLhsl(302, 64%, 49%)
HSVhsv(302, 78%, 80%)
CMYKcmyk(0%, 77.9%, 2.5%, 20%)
CIE-LABlab(50.50, 75.62, -45.35)
CIE-LCHlch(50.50, 88.18, 329.05°)
OKLaboklab(60.62% 0.2134 -0.1255)
OKLCHoklch(60.62% 0.248 329.5)
XYZxyz(36.1488, 18.8405, 55.7544)
Luminance0.1884 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC2DC7 #2DCC32
analogous
#822DCC #CC2DC7 #CC2D78
triadic
#CC2DC7 #C7CC2D #2DC7CC
tetradic
#CC2DC7 #CC822D #2DCC32 #2D78CC
square
#CC2DC7 #CC822D #2DCC32 #2D78CC
split-complementary
#CC2DC7 #78CC2D #2DCC82
monochromatic
#681765 #9A2296 #CC2DC7 #DB5BD7 #E68DE3

Accessibility & contrast

On white

4.40
#CC2DC7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#CC2DC7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC2DC7
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC2DC7#FFFFFF#000000##000000
##CC2DC71.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#086BCB
Deuteranopia (green-blind)
#5F7FC3
Tritanopia (blue-blind)
#D3467A
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #cc2dc7;
/* rgb */ color: rgb(204, 45, 199);
/* oklch */ color: oklch(60.6% 0.248 329.5);
Tailwind
colors: {
  custom: {
    50: '#e079d8',
    500: '#cc2dc7',
    950: '#000000',
  },
}
SCSS
$custom: #cc2dc7;
$custom-light: #e079d8;
$custom-dark: #000000;
JSON
{
  "hex": "#cc2dc7",
  "rgb": {
    "r": 204,
    "g": 45,
    "b": 199
  },
  "hsl": {
    "h": 301.887,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.60621,
    "c": 0.24758,
    "h": 329.5
  },
  "luminance": 0.18838
}

Semantic roles & 50–950 ramp

primary
#CC2DC7
secondary
#85D087
accent
#E74641
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160A14
muted
#847C83

Preview Lab

Preview with #CC2DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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