#CC2DB7#CC2DB7

#CC2DB7 is a mid, highly saturated purple. Relative luminance 0.181; OKLCH L 59.8% C 0.237 H 334.3°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#CC2DB7
RGBrgb(204, 45, 183)
HSLhsl(308, 64%, 49%)
HSVhsv(308, 78%, 80%)
CMYKcmyk(0%, 77.9%, 10.3%, 20%)
CIE-LABlab(49.66, 73.26, -37.38)
CIE-LCHlch(49.66, 82.25, 332.97°)
OKLaboklab(59.75% 0.2132 -0.1024)
OKLCHoklch(59.75% 0.237 334.3)
XYZxyz(34.3879, 18.1361, 46.4801)
Luminance0.1813 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC2DB7 #2DCC42
analogous
#922DCC #CC2DB7 #CC2D67
triadic
#CC2DB7 #B7CC2D #2DB7CC
tetradic
#CC2DB7 #CC922D #2DCC42 #2D67CC
square
#CC2DB7 #CC922D #2DCC42 #2D67CC
split-complementary
#CC2DB7 #67CC2D #2DCC92
monochromatic
#68175D #9A228A #CC2DB7 #DB5BCA #E68DDA

Accessibility & contrast

On white

4.54
#CC2DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#CC2DB7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC2DB7
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC2DB7#FFFFFF#000000##000000
##CC2DB71.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#2967BB
Deuteranopia (green-blind)
#677EB3
Tritanopia (blue-blind)
#D63D71
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #cc2db7;
/* rgb */ color: rgb(204, 45, 183);
/* oklch */ color: oklch(59.8% 0.237 334.3);
Tailwind
colors: {
  custom: {
    50: '#e078cd',
    500: '#cc2db7',
    950: '#000000',
  },
}
SCSS
$custom: #cc2db7;
$custom-light: #e078cd;
$custom-dark: #000000;
JSON
{
  "hex": "#cc2db7",
  "rgb": {
    "r": 204,
    "g": 45,
    "b": 183
  },
  "hsl": {
    "h": 307.925,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.5975,
    "c": 0.23652,
    "h": 334.3
  },
  "luminance": 0.18133
}

Semantic roles & 50–950 ramp

primary
#CC2DB7
secondary
#85D08F
accent
#E75741
background
#FEF7FC
surface
#FCEEF9
border
#D5C9D2
text
#160A13
muted
#847C82

Preview Lab

Preview with #CC2DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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