#CC31AB#CC31AB

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

Color values

HEX#CC31AB
RGBrgb(204, 49, 171)
HSLhsl(313, 61%, 50%)
HSVhsv(313, 76%, 80%)
CMYKcmyk(0%, 76%, 16.2%, 20%)
CIE-LABlab(49.47, 70.47, -30.64)
CIE-LCHlch(49.47, 76.85, 336.50°)
OKLaboklab(59.42% 0.2089 -0.0831)
OKLCHoklch(59.42% 0.225 338.3)
XYZxyz(33.3516, 17.9775, 40.2337)
Luminance0.1797 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC31AB #31CC52
analogous
#A031CC #CC31AB #CC315E
triadic
#CC31AB #ABCC31 #31ABCC
tetradic
#CC31AB #CCA031 #31CC52 #315ECC
square
#CC31AB #CCA031 #31CC52 #315ECC
split-complementary
#CC31AB #5ECC31 #31CCA0
monochromatic
#691958 #9B2582 #CC31AB #D961C0 #E592D3

Accessibility & contrast

On white

4.57
#CC31AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CC31AB#FFFFFF#000000##000000
##CC31AB1.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#3966AE
Deuteranopia (green-blind)
#6E7EA7
Tritanopia (blue-blind)
#D7396B
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #cc31ab;
/* rgb */ color: rgb(204, 49, 171);
/* oklch */ color: oklch(59.4% 0.225 338.3);
Tailwind
colors: {
  custom: {
    50: '#e079c4',
    500: '#cc31ab',
    950: '#000000',
  },
}
SCSS
$custom: #cc31ab;
$custom-light: #e079c4;
$custom-dark: #000000;
JSON
{
  "hex": "#cc31ab",
  "rgb": {
    "r": 204,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 312.774,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.59424,
    "c": 0.22488,
    "h": 338.3
  },
  "luminance": 0.17974
}

Semantic roles & 50–950 ramp

primary
#CC31AB
secondary
#89D098
accent
#E46643
background
#FEF7FC
surface
#FCEEF8
border
#D5C9D1
text
#160A12
muted
#847C81

Preview Lab

Preview with #CC31AB

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

Preview Lab → · Contrast checker → · Palette generator →

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