#CC31C9#CC31C9

#CC31C9 is a mid, highly saturated purple. Relative luminance 0.193; OKLCH L 61.0% C 0.245 H 328.9°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#CC31C9
RGBrgb(204, 49, 201)
HSLhsl(301, 61%, 50%)
HSVhsv(301, 76%, 80%)
CMYKcmyk(0%, 76%, 1.5%, 20%)
CIE-LABlab(50.98, 74.85, -45.74)
CIE-LCHlch(50.98, 87.72, 328.57°)
OKLaboklab(61% 0.2103 -0.1267)
OKLCHoklch(61% 0.245 328.9)
XYZxyz(36.5424, 19.2538, 57.0387)
Luminance0.1925 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#CC31C9 #31CC34
analogous
#8131CC #CC31C9 #CC317C
triadic
#CC31C9 #C9CC31 #31C9CC
tetradic
#CC31C9 #CC8131 #31CC34 #317CCC
square
#CC31C9 #CC8131 #31CC34 #317CCC
split-complementary
#CC31C9 #7CCC31 #31CC81
monochromatic
#691968 #9B2598 #CC31C9 #D961D7 #E592E3

Accessibility & contrast

On white

4.33
#CC31C9 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#CC31C9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #CC31C9
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##CC31C9#FFFFFF#000000##000000
##CC31C91.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0F6CCD
Deuteranopia (green-blind)
#5F80C5
Tritanopia (blue-blind)
#D3497C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #cc31c9;
/* rgb */ color: rgb(204, 49, 201);
/* oklch */ color: oklch(61.0% 0.245 328.9);
Tailwind
colors: {
  custom: {
    50: '#e07bda',
    500: '#cc31c9',
    950: '#000000',
  },
}
SCSS
$custom: #cc31c9;
$custom-light: #e07bda;
$custom-dark: #000000;
JSON
{
  "hex": "#cc31c9",
  "rgb": {
    "r": 204,
    "g": 49,
    "b": 201
  },
  "hsl": {
    "h": 301.161,
    "s": 61.265,
    "l": 49.608
  },
  "oklch": {
    "l": 0.61,
    "c": 0.24549,
    "h": 328.9
  },
  "luminance": 0.19251
}

Semantic roles & 50–950 ramp

primary
#CC31C9
secondary
#89D08A
accent
#E44743
background
#FEF8FD
surface
#FCEFFB
border
#D5CAD4
text
#160B15
muted
#847C83

Preview Lab

Preview with #CC31C9

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

Preview Lab → · Contrast checker → · Palette generator →

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