#CC2DCC#CC2DCC

#CC2DCC is a mid, highly saturated purple. Relative luminance 0.191; OKLCH L 60.9% C 0.251 H 328.1°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#CC2DCC
RGBrgb(204, 45, 204)
HSLhsl(300, 64%, 49%)
HSVhsv(300, 78%, 80%)
CMYKcmyk(0%, 77.9%, 0%, 20%)
CIE-LABlab(50.78, 76.39, -47.79)
CIE-LCHlch(50.78, 90.11, 327.97°)
OKLaboklab(60.91% 0.2133 -0.1326)
OKLCHoklch(60.91% 0.251 328.1)
XYZxyz(36.7389, 19.0765, 58.8622)
Luminance0.1907 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC2DCC #2DCC2D
analogous
#7D2DCC #CC2DCC #CC2D7D
triadic
#CC2DCC #CCCC2D #2DCCCC
tetradic
#CC2DCC #CC7D2D #2DCC2D #2D7DCC
square
#CC2DCC #CC7D2D #2DCC2D #2D7DCC
split-complementary
#CC2DCC #7DCC2D #2DCC7D
monochromatic
#681768 #9A229A #CC2DCC #DB5BDB #E68DE6

Accessibility & contrast

On white

4.36
#CC2DCC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#CC2DCC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC2DCC
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC2DCC#FFFFFF#000000##000000
##CC2DCC1.004.364.814.81
#FFFFFF4.361.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#006CD0
Deuteranopia (green-blind)
#5C80C8
Tritanopia (blue-blind)
#D3497D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cc2dcc;
/* rgb */ color: rgb(204, 45, 204);
/* oklch */ color: oklch(60.9% 0.251 328.1);
Tailwind
colors: {
  custom: {
    50: '#e079dc',
    500: '#cc2dcc',
    950: '#000000',
  },
}
SCSS
$custom: #cc2dcc;
$custom-light: #e079dc;
$custom-dark: #000000;
JSON
{
  "hex": "#cc2dcc",
  "rgb": {
    "r": 204,
    "g": 45,
    "b": 204
  },
  "hsl": {
    "h": 300,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.60906,
    "c": 0.25113,
    "h": 328.1
  },
  "luminance": 0.19074
}

Semantic roles & 50–950 ramp

primary
#CC2DCC
secondary
#85D085
accent
#E74141
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160A15
muted
#847C83

Preview Lab

Preview with #CC2DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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