#C31CC9#C31CC9

#C31CC9 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 58.5% C 0.257 H 326.6°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#C31CC9
RGBrgb(195, 28, 201)
HSLhsl(298, 76%, 45%)
HSVhsv(298, 86%, 79%)
CMYKcmyk(3%, 86.1%, 0%, 21.2%)
CIE-LABlab(47.82, 77.98, -50.87)
CIE-LCHlch(47.82, 93.10, 326.88°)
OKLaboklab(58.47% 0.2148 -0.1417)
OKLCHoklch(58.47% 0.257 326.6)
XYZxyz(33.4629, 16.6521, 56.6987)
Luminance0.1665 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C31CC9 #22C91C
analogous
#6C1CC9 #C31CC9 #C91C79
triadic
#C31CC9 #C9C31C #1CC9C3
tetradic
#C31CC9 #C96C1C #22C91C #1C79C9
square
#C31CC9 #C96C1C #22C91C #1C79C9
split-complementary
#C31CC9 #79C91C #1CC96C
monochromatic
#5B0D5E #8F1593 #C31CC9 #DE3EE4 #E774EC

Accessibility & contrast

On white

4.85
#C31CC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#C31CC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C31CC9
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C31CC9#FFFFFF#000000##FFFFFF
##C31CC91.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065CD
Deuteranopia (green-blind)
#4F78C5
Tritanopia (blue-blind)
#C84278
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #c31cc9;
/* rgb */ color: rgb(195, 28, 201);
/* oklch */ color: oklch(58.5% 0.257 326.6);
Tailwind
colors: {
  custom: {
    50: '#da73da',
    500: '#c31cc9',
    950: '#000000',
  },
}
SCSS
$custom: #c31cc9;
$custom-light: #da73da;
$custom-dark: #000000;
JSON
{
  "hex": "#c31cc9",
  "rgb": {
    "r": 195,
    "g": 28,
    "b": 201
  },
  "hsl": {
    "h": 297.919,
    "s": 75.546,
    "l": 44.902
  },
  "oklch": {
    "l": 0.58473,
    "c": 0.25731,
    "h": 326.6
  },
  "luminance": 0.1665
}

Semantic roles & 50–950 ramp

primary
#C31CC9
secondary
#72D26E
accent
#F2363C
background
#FEF7FD
surface
#FCEEFB
border
#D5C9D4
text
#150915
muted
#847B83

Preview Lab

Preview with #C31CC9

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

Preview Lab → · Contrast checker → · Palette generator →

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