#CC31C3#CC31C3

#CC31C3 is a mid, highly saturated purple. Relative luminance 0.190; OKLCH L 60.7% C 0.241 H 330.7°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#CC31C3
RGBrgb(204, 49, 195)
HSLhsl(303, 61%, 50%)
HSVhsv(303, 76%, 80%)
CMYKcmyk(0%, 76%, 4.4%, 20%)
CIE-LABlab(50.66, 73.93, -42.78)
CIE-LCHlch(50.66, 85.42, 329.94°)
OKLaboklab(60.67% 0.2103 -0.1181)
OKLCHoklch(60.67% 0.241 330.7)
XYZxyz(35.8504, 18.9770, 53.3939)
Luminance0.1897 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC31C3 #31CC3A
analogous
#8831CC #CC31C3 #CC3176
triadic
#CC31C3 #C3CC31 #31C3CC
tetradic
#CC31C3 #CC8831 #31CC3A #3176CC
square
#CC31C3 #CC8831 #31CC3A #3176CC
split-complementary
#CC31C3 #76CC31 #31CC88
monochromatic
#691965 #9B2594 #CC31C3 #D961D2 #E592E0

Accessibility & contrast

On white

4.38
#CC31C3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#CC31C3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC31C3
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC31C3#FFFFFF#000000##000000
##CC31C31.004.384.794.79
#FFFFFF4.381.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D6BC7
Deuteranopia (green-blind)
#6380BF
Tritanopia (blue-blind)
#D44679
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cc31c3;
/* rgb */ color: rgb(204, 49, 195);
/* oklch */ color: oklch(60.7% 0.241 330.7);
Tailwind
colors: {
  custom: {
    50: '#e07ad6',
    500: '#cc31c3',
    950: '#000000',
  },
}
SCSS
$custom: #cc31c3;
$custom-light: #e07ad6;
$custom-dark: #000000;
JSON
{
  "hex": "#cc31c3",
  "rgb": {
    "r": 204,
    "g": 49,
    "b": 195
  },
  "hsl": {
    "h": 303.484,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.60666,
    "c": 0.2412,
    "h": 330.7
  },
  "luminance": 0.18974
}

Semantic roles & 50–950 ramp

primary
#CC31C3
secondary
#89D08D
accent
#E44D43
background
#FEF8FD
surface
#FCEFFA
border
#D5CAD3
text
#160A14
muted
#847C83

Preview Lab

Preview with #CC31C3

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

Preview Lab → · Contrast checker → · Palette generator →

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