#C31FA6#C31FA6

#C31FA6 is a mid, highly saturated pink. Relative luminance 0.153; OKLCH L 56.6% C 0.232 H 337.1°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#C31FA6
RGBrgb(195, 31, 166)
HSLhsl(311, 73%, 44%)
HSVhsv(311, 84%, 76%)
CMYKcmyk(0%, 84.1%, 14.9%, 23.5%)
CIE-LABlab(46.09, 72.33, -33.08)
CIE-LCHlch(46.09, 79.53, 335.42°)
OKLaboklab(56.63% 0.2138 -0.0902)
OKLCHoklch(56.63% 0.232 337.1)
XYZxyz(29.8793, 15.3382, 37.4560)
Luminance0.1533 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C31FA6 #1FC33C
analogous
#8E1FC3 #C31FA6 #C31F54
triadic
#C31FA6 #A6C31F #1FA6C3
tetradic
#C31FA6 #C38E1F #1FC33C #1F54C3
square
#C31FA6 #C38E1F #1FC33C #1F54C3
split-complementary
#C31FA6 #54C31F #1FC38E
monochromatic
#590E4C #8E1779 #C31FA6 #E03FC4 #E974D4

Accessibility & contrast

On white

5.16
#C31FA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#C31FA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C31FA6
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C31FA6#FFFFFF#000000##FFFFFF
##C31FA61.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265EA9
Deuteranopia (green-blind)
#6376A2
Tritanopia (blue-blind)
#CE2D64
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #c31fa6;
/* rgb */ color: rgb(195, 31, 166);
/* oklch */ color: oklch(56.6% 0.232 337.1);
Tailwind
colors: {
  custom: {
    50: '#da72c1',
    500: '#c31fa6',
    950: '#000000',
  },
}
SCSS
$custom: #c31fa6;
$custom-light: #da72c1;
$custom-dark: #000000;
JSON
{
  "hex": "#c31fa6",
  "rgb": {
    "r": 195,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 310.61,
    "s": 72.566,
    "l": 44.314
  },
  "oklch": {
    "l": 0.56631,
    "c": 0.23201,
    "h": 337.1
  },
  "luminance": 0.15335
}

Semantic roles & 50–950 ramp

primary
#C31FA6
secondary
#6ED07F
accent
#EF5939
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #C31FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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