#CC2CB2#CC2CB2

#CC2CB2 is a mid, highly saturated purple. Relative luminance 0.179; OKLCH L 59.4% C 0.234 H 335.9°. Best body text is #FFFFFF at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#CC2CB2
RGBrgb(204, 44, 178)
HSLhsl(310, 65%, 49%)
HSVhsv(310, 78%, 80%)
CMYKcmyk(0%, 78.4%, 12.7%, 20%)
CIE-LABlab(49.32, 72.82, -34.99)
CIE-LCHlch(49.32, 80.79, 334.34°)
OKLaboklab(59.43% 0.2137 -0.0956)
OKLCHoklch(59.43% 0.234 335.9)
XYZxyz(33.8390, 17.8563, 43.7753)
Luminance0.1785 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC2CB2 #2CCC46
analogous
#962CCC #CC2CB2 #CC2C62
triadic
#CC2CB2 #B2CC2C #2CB2CC
tetradic
#CC2CB2 #CC962C #2CCC46 #2C62CC
square
#CC2CB2 #CC962C #2CCC46 #2C62CC
split-complementary
#CC2CB2 #62CC2C #2CCC96
monochromatic
#67165A #9A2186 #CC2CB2 #DB5AC6 #E68CD8

Accessibility & contrast

On white

4.59
#CC2CB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#CC2CB2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #CC2CB2
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC2CB2#FFFFFF#000000##FFFFFF
##CC2CB21.004.594.574.59
#FFFFFF4.591.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E66B5
Deuteranopia (green-blind)
#697EAE
Tritanopia (blue-blind)
#D73A6E
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #cc2cb2;
/* rgb */ color: rgb(204, 44, 178);
/* oklch */ color: oklch(59.4% 0.234 335.9);
Tailwind
colors: {
  custom: {
    50: '#e078c9',
    500: '#cc2cb2',
    950: '#000000',
  },
}
SCSS
$custom: #cc2cb2;
$custom-light: #e078c9;
$custom-dark: #000000;
JSON
{
  "hex": "#cc2cb2",
  "rgb": {
    "r": 204,
    "g": 44,
    "b": 178
  },
  "hsl": {
    "h": 309.75,
    "s": 64.516,
    "l": 48.627
  },
  "oklch": {
    "l": 0.59427,
    "c": 0.23407,
    "h": 335.9
  },
  "luminance": 0.17853
}

Semantic roles & 50–950 ramp

primary
#CC2CB2
secondary
#83D090
accent
#E85B40
background
#FEF7FC
surface
#FCEEF8
border
#D5C9D1
text
#160A13
muted
#847C82

Preview Lab

Preview with #CC2CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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