#CC31B0#CC31B0

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

Color values

HEX#CC31B0
RGBrgb(204, 49, 176)
HSLhsl(311, 61%, 50%)
HSVhsv(311, 76%, 80%)
CMYKcmyk(0%, 76%, 13.7%, 20%)
CIE-LABlab(49.70, 71.16, -33.21)
CIE-LCHlch(49.70, 78.53, 334.98°)
OKLaboklab(59.67% 0.2094 -0.0905)
OKLCHoklch(59.67% 0.228 336.6)
XYZxyz(33.8372, 18.1718, 42.7913)
Luminance0.1817 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC31B0 #31CC4D
analogous
#9B31CC #CC31B0 #CC3162
triadic
#CC31B0 #B0CC31 #31B0CC
tetradic
#CC31B0 #CC9B31 #31CC4D #3162CC
square
#CC31B0 #CC9B31 #31CC4D #3162CC
split-complementary
#CC31B0 #62CC31 #31CC9B
monochromatic
#69195B #9B2585 #CC31B0 #D961C3 #E592D6

Accessibility & contrast

On white

4.53
#CC31B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##CC31B0#FFFFFF#000000##000000
##CC31B01.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3567B3
Deuteranopia (green-blind)
#6C7EAC
Tritanopia (blue-blind)
#D73C6E
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #cc31b0;
/* rgb */ color: rgb(204, 49, 176);
/* oklch */ color: oklch(59.7% 0.228 336.6);
Tailwind
colors: {
  custom: {
    50: '#e07ac8',
    500: '#cc31b0',
    950: '#000000',
  },
}
SCSS
$custom: #cc31b0;
$custom-light: #e07ac8;
$custom-dark: #000000;
JSON
{
  "hex": "#cc31b0",
  "rgb": {
    "r": 204,
    "g": 49,
    "b": 176
  },
  "hsl": {
    "h": 310.839,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.5967,
    "c": 0.22815,
    "h": 336.6
  },
  "luminance": 0.18169
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #CC31B0

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

Preview Lab → · Contrast checker → · Palette generator →

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