#CC31B5#CC31B5

#CC31B5 is a mid, highly saturated purple. Relative luminance 0.184; OKLCH L 59.9% C 0.231 H 335.0°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#CC31B5
RGBrgb(204, 49, 181)
HSLhsl(309, 61%, 50%)
HSVhsv(309, 76%, 80%)
CMYKcmyk(0%, 76%, 11.3%, 20%)
CIE-LABlab(49.95, 71.87, -35.77)
CIE-LCHlch(49.95, 80.28, 333.54°)
OKLaboklab(59.92% 0.2098 -0.0978)
OKLCHoklch(59.92% 0.231 335)
XYZxyz(34.3411, 18.3733, 45.4449)
Luminance0.1837 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC31B5 #31CC48
analogous
#9531CC #CC31B5 #CC3168
triadic
#CC31B5 #B5CC31 #31B5CC
tetradic
#CC31B5 #CC9531 #31CC48 #3168CC
square
#CC31B5 #CC9531 #31CC48 #3168CC
split-complementary
#CC31B5 #68CC31 #31CC95
monochromatic
#69195D #9B2589 #CC31B5 #D961C7 #E592D9

Accessibility & contrast

On white

4.49
#CC31B5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.67
#CC31B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC31B5
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC31B5#FFFFFF#000000##000000
##CC31B51.004.494.674.67
#FFFFFF4.491.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#3068B9
Deuteranopia (green-blind)
#6A7FB1
Tritanopia (blue-blind)
#D63F71
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #cc31b5;
/* rgb */ color: rgb(204, 49, 181);
/* oklch */ color: oklch(59.9% 0.231 335.0);
Tailwind
colors: {
  custom: {
    50: '#e07acb',
    500: '#cc31b5',
    950: '#000000',
  },
}
SCSS
$custom: #cc31b5;
$custom-light: #e07acb;
$custom-dark: #000000;
JSON
{
  "hex": "#cc31b5",
  "rgb": {
    "r": 204,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 308.903,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.59922,
    "c": 0.23148,
    "h": 335
  },
  "luminance": 0.1837
}

Semantic roles & 50–950 ramp

primary
#CC31B5
secondary
#89D093
accent
#E45B43
background
#FEF8FC
surface
#FCEFF8
border
#D5CAD1
text
#160A13
muted
#847C82

Preview Lab

Preview with #CC31B5

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

Preview Lab → · Contrast checker → · Palette generator →

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