#CC31AA#CC31AA

#CC31AA is a mid, highly saturated pink. Relative luminance 0.179; OKLCH L 59.4% C 0.224 H 338.6°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#CC31AA
RGBrgb(204, 49, 170)
HSLhsl(313, 61%, 50%)
HSVhsv(313, 76%, 80%)
CMYKcmyk(0%, 76%, 16.7%, 20%)
CIE-LABlab(49.42, 70.34, -30.12)
CIE-LCHlch(49.42, 76.52, 336.82°)
OKLaboklab(59.38% 0.2088 -0.0817)
OKLCHoklch(59.38% 0.224 338.6)
XYZxyz(33.2567, 17.9395, 39.7336)
Luminance0.1794 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC31AA #31CC53
analogous
#A031CC #CC31AA #CC315D
triadic
#CC31AA #AACC31 #31AACC
tetradic
#CC31AA #CCA031 #31CC53 #315DCC
square
#CC31AA #CCA031 #31CC53 #315DCC
split-complementary
#CC31AA #5DCC31 #31CCA0
monochromatic
#691958 #9B2581 #CC31AA #D961BF #E592D3

Accessibility & contrast

On white

4.58
#CC31AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#CC31AA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC31AA
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC31AA#FFFFFF#000000##000000
##CC31AA1.004.584.594.59
#FFFFFF4.581.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3A66AD
Deuteranopia (green-blind)
#6E7EA6
Tritanopia (blue-blind)
#D8396B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #cc31aa;
/* rgb */ color: rgb(204, 49, 170);
/* oklch */ color: oklch(59.4% 0.224 338.6);
Tailwind
colors: {
  custom: {
    50: '#e079c3',
    500: '#cc31aa',
    950: '#000000',
  },
}
SCSS
$custom: #cc31aa;
$custom-light: #e079c3;
$custom-dark: #000000;
JSON
{
  "hex": "#cc31aa",
  "rgb": {
    "r": 204,
    "g": 49,
    "b": 170
  },
  "hsl": {
    "h": 313.161,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.59376,
    "c": 0.22424,
    "h": 338.6
  },
  "luminance": 0.17936
}

Semantic roles & 50–950 ramp

primary
#CC31AA
secondary
#89D099
accent
#E46743
background
#FEF7FC
surface
#FCEEF8
border
#D5C9D1
text
#160A12
muted
#847C81

Preview Lab

Preview with #CC31AA

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

Preview Lab → · Contrast checker → · Palette generator →

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