#CC2DC8#CC2DC8

#CC2DC8 is a mid, highly saturated purple. Relative luminance 0.189; OKLCH L 60.7% C 0.248 H 329.3°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#CC2DC8
RGBrgb(204, 45, 200)
HSLhsl(302, 64%, 49%)
HSVhsv(302, 78%, 80%)
CMYKcmyk(0%, 77.9%, 2%, 20%)
CIE-LABlab(50.55, 75.78, -45.84)
CIE-LCHlch(50.55, 88.56, 328.83°)
OKLaboklab(60.68% 0.2134 -0.1269)
OKLCHoklch(60.68% 0.248 329.3)
XYZxyz(36.2653, 18.8871, 56.3679)
Luminance0.1888 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC2DC8 #2DCC31
analogous
#812DCC #CC2DC8 #CC2D79
triadic
#CC2DC8 #C8CC2D #2DC8CC
tetradic
#CC2DC8 #CC812D #2DCC31 #2D79CC
square
#CC2DC8 #CC812D #2DCC31 #2D79CC
split-complementary
#CC2DC8 #79CC2D #2DCC81
monochromatic
#681766 #9A2297 #CC2DC8 #DB5BD8 #E68DE4

Accessibility & contrast

On white

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

On black

4.78
#CC2DC8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC2DC8
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC2DC8#FFFFFF#000000##000000
##CC2DC81.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#046BCC
Deuteranopia (green-blind)
#5E80C4
Tritanopia (blue-blind)
#D3477B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #cc2dc8;
/* rgb */ color: rgb(204, 45, 200);
/* oklch */ color: oklch(60.7% 0.248 329.3);
Tailwind
colors: {
  custom: {
    50: '#e079d9',
    500: '#cc2dc8',
    950: '#000000',
  },
}
SCSS
$custom: #cc2dc8;
$custom-light: #e079d9;
$custom-dark: #000000;
JSON
{
  "hex": "#cc2dc8",
  "rgb": {
    "r": 204,
    "g": 45,
    "b": 200
  },
  "hsl": {
    "h": 301.509,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.60677,
    "c": 0.24828,
    "h": 329.3
  },
  "luminance": 0.18884
}

Semantic roles & 50–950 ramp

primary
#CC2DC8
secondary
#85D086
accent
#E74541
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160A15
muted
#847C83

Preview Lab

Preview with #CC2DC8

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

Preview Lab → · Contrast checker → · Palette generator →

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