#CC31AF#CC31AF

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

Color values

HEX#CC31AF
RGBrgb(204, 49, 175)
HSLhsl(311, 61%, 50%)
HSVhsv(311, 76%, 80%)
CMYKcmyk(0%, 76%, 14.2%, 20%)
CIE-LABlab(49.66, 71.02, -32.70)
CIE-LCHlch(49.66, 78.19, 335.28°)
OKLaboklab(59.62% 0.2093 -0.089)
OKLCHoklch(59.62% 0.227 337)
XYZxyz(33.7387, 18.1323, 42.2721)
Luminance0.1813 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC31AF #31CC4E
analogous
#9C31CC #CC31AF #CC3161
triadic
#CC31AF #AFCC31 #31AFCC
tetradic
#CC31AF #CC9C31 #31CC4E #3161CC
square
#CC31AF #CC9C31 #31CC4E #3161CC
split-complementary
#CC31AF #61CC31 #31CC9C
monochromatic
#69195A #9B2585 #CC31AF #D961C3 #E592D6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##CC31AF#FFFFFF#000000##000000
##CC31AF1.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)
#3667B2
Deuteranopia (green-blind)
#6C7EAB
Tritanopia (blue-blind)
#D73C6D
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #cc31af;
/* rgb */ color: rgb(204, 49, 175);
/* oklch */ color: oklch(59.6% 0.227 337.0);
Tailwind
colors: {
  custom: {
    50: '#e07ac7',
    500: '#cc31af',
    950: '#000000',
  },
}
SCSS
$custom: #cc31af;
$custom-light: #e07ac7;
$custom-dark: #000000;
JSON
{
  "hex": "#cc31af",
  "rgb": {
    "r": 204,
    "g": 49,
    "b": 175
  },
  "hsl": {
    "h": 311.226,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.5962,
    "c": 0.22749,
    "h": 337
  },
  "luminance": 0.18129
}

Semantic roles & 50–950 ramp

primary
#CC31AF
secondary
#89D096
accent
#E46243
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160A13
muted
#847C82

Preview Lab

Preview with #CC31AF

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

Preview Lab → · Contrast checker → · Palette generator →

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