#CC2DC2#CC2DC2

#CC2DC2 is a mid, highly saturated purple. Relative luminance 0.186; OKLCH L 60.3% C 0.244 H 331.0°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#CC2DC2
RGBrgb(204, 45, 194)
HSLhsl(304, 64%, 49%)
HSVhsv(304, 78%, 80%)
CMYKcmyk(0%, 77.9%, 4.9%, 20%)
CIE-LABlab(50.23, 74.87, -42.89)
CIE-LCHlch(50.23, 86.28, 330.20°)
OKLaboklab(60.34% 0.2135 -0.1183)
OKLCHoklch(60.34% 0.244 331)
XYZxyz(35.5778, 18.6121, 52.7472)
Luminance0.1861 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC2DC2 #2DCC37
analogous
#872DCC #CC2DC2 #CC2D73
triadic
#CC2DC2 #C2CC2D #2DC2CC
tetradic
#CC2DC2 #CC872D #2DCC37 #2D73CC
square
#CC2DC2 #CC872D #2DCC37 #2D73CC
split-complementary
#CC2DC2 #73CC2D #2DCC87
monochromatic
#681763 #9A2292 #CC2DC2 #DB5BD3 #E68DE0

Accessibility & contrast

On white

4.45
#CC2DC2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#CC2DC2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC2DC2
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC2DC2#FFFFFF#000000##000000
##CC2DC21.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#186AC6
Deuteranopia (green-blind)
#627FBE
Tritanopia (blue-blind)
#D44377
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #cc2dc2;
/* rgb */ color: rgb(204, 45, 194);
/* oklch */ color: oklch(60.3% 0.244 331.0);
Tailwind
colors: {
  custom: {
    50: '#e079d5',
    500: '#cc2dc2',
    950: '#000000',
  },
}
SCSS
$custom: #cc2dc2;
$custom-light: #e079d5;
$custom-dark: #000000;
JSON
{
  "hex": "#cc2dc2",
  "rgb": {
    "r": 204,
    "g": 45,
    "b": 194
  },
  "hsl": {
    "h": 303.774,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.60341,
    "c": 0.24406,
    "h": 331
  },
  "luminance": 0.18609
}

Semantic roles & 50–950 ramp

primary
#CC2DC2
secondary
#85D089
accent
#E74B41
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160A14
muted
#847C83

Preview Lab

Preview with #CC2DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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