#CC31B1#CC31B1

#CC31B1 is a mid, highly saturated pink. Relative luminance 0.182; OKLCH L 59.7% C 0.229 H 336.3°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#CC31B1
RGBrgb(204, 49, 177)
HSLhsl(310, 61%, 50%)
HSVhsv(310, 76%, 80%)
CMYKcmyk(0%, 76%, 13.2%, 20%)
CIE-LABlab(49.75, 71.30, -33.73)
CIE-LCHlch(49.75, 78.88, 334.69°)
OKLaboklab(59.72% 0.2095 -0.092)
OKLCHoklch(59.72% 0.229 336.3)
XYZxyz(33.9365, 18.2115, 43.3143)
Luminance0.1821 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC31B1 #31CC4C
analogous
#9A31CC #CC31B1 #CC3163
triadic
#CC31B1 #B1CC31 #31B1CC
tetradic
#CC31B1 #CC9A31 #31CC4C #3163CC
square
#CC31B1 #CC9A31 #31CC4C #3163CC
split-complementary
#CC31B1 #63CC31 #31CC9A
monochromatic
#69195B #9B2586 #CC31B1 #D961C4 #E592D7

Accessibility & contrast

On white

4.52
#CC31B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#CC31B1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC31B1
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC31B1#FFFFFF#000000##000000
##CC31B11.004.524.644.64
#FFFFFF4.521.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#3467B4
Deuteranopia (green-blind)
#6B7FAD
Tritanopia (blue-blind)
#D73D6F
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #cc31b1;
/* rgb */ color: rgb(204, 49, 177);
/* oklch */ color: oklch(59.7% 0.229 336.3);
Tailwind
colors: {
  custom: {
    50: '#e07ac8',
    500: '#cc31b1',
    950: '#000000',
  },
}
SCSS
$custom: #cc31b1;
$custom-light: #e07ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#cc31b1",
  "rgb": {
    "r": 204,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 310.452,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.5972,
    "c": 0.22881,
    "h": 336.3
  },
  "luminance": 0.18208
}

Semantic roles & 50–950 ramp

primary
#CC31B1
secondary
#89D095
accent
#E45F43
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160A13
muted
#847C82

Preview Lab

Preview with #CC31B1

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

Preview Lab → · Contrast checker → · Palette generator →

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