#CC31AE#CC31AE

#CC31AE is a mid, highly saturated pink. Relative luminance 0.181; OKLCH L 59.6% C 0.227 H 337.3°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#CC31AE
RGBrgb(204, 49, 174)
HSLhsl(312, 61%, 50%)
HSVhsv(312, 76%, 80%)
CMYKcmyk(0%, 76%, 14.7%, 20%)
CIE-LABlab(49.61, 70.88, -32.19)
CIE-LCHlch(49.61, 77.85, 335.58°)
OKLaboklab(59.57% 0.2092 -0.0876)
OKLCHoklch(59.57% 0.227 337.3)
XYZxyz(33.6408, 18.0932, 41.7568)
Luminance0.1809 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC31AE #31CC4F
analogous
#9D31CC #CC31AE #CC3160
triadic
#CC31AE #AECC31 #31AECC
tetradic
#CC31AE #CC9D31 #31CC4F #3160CC
square
#CC31AE #CC9D31 #31CC4F #3160CC
split-complementary
#CC31AE #60CC31 #31CC9D
monochromatic
#69195A #9B2584 #CC31AE #D961C2 #E592D5

Accessibility & contrast

On white

4.55
#CC31AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#CC31AE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC31AE
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC31AE#FFFFFF#000000##000000
##CC31AE1.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#3767B1
Deuteranopia (green-blind)
#6D7EAA
Tritanopia (blue-blind)
#D73B6D
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #cc31ae;
/* rgb */ color: rgb(204, 49, 174);
/* oklch */ color: oklch(59.6% 0.227 337.3);
Tailwind
colors: {
  custom: {
    50: '#e07ac6',
    500: '#cc31ae',
    950: '#000000',
  },
}
SCSS
$custom: #cc31ae;
$custom-light: #e07ac6;
$custom-dark: #000000;
JSON
{
  "hex": "#cc31ae",
  "rgb": {
    "r": 204,
    "g": 49,
    "b": 174
  },
  "hsl": {
    "h": 311.613,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.59571,
    "c": 0.22683,
    "h": 337.3
  },
  "luminance": 0.1809
}

Semantic roles & 50–950 ramp

primary
#CC31AE
secondary
#89D097
accent
#E46343
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160A13
muted
#847C82

Preview Lab

Preview with #CC31AE

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

Preview Lab → · Contrast checker → · Palette generator →

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