#C31FA5#C31FA5

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

Color values

HEX#C31FA5
RGBrgb(195, 31, 165)
HSLhsl(311, 73%, 44%)
HSVhsv(311, 84%, 76%)
CMYKcmyk(0%, 84.1%, 15.4%, 23.5%)
CIE-LABlab(46.04, 72.19, -32.56)
CIE-LCHlch(46.04, 79.20, 335.72°)
OKLaboklab(56.58% 0.2137 -0.0887)
OKLCHoklch(56.58% 0.231 337.5)
XYZxyz(29.7879, 15.3017, 36.9748)
Luminance0.1530 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C31FA5 #1FC33D
analogous
#8F1FC3 #C31FA5 #C31F53
triadic
#C31FA5 #A5C31F #1FA5C3
tetradic
#C31FA5 #C38F1F #1FC33D #1F53C3
square
#C31FA5 #C38F1F #1FC33D #1F53C3
split-complementary
#C31FA5 #53C31F #1FC38F
monochromatic
#590E4C #8E1778 #C31FA5 #E03FC3 #E974D3

Accessibility & contrast

On white

5.17
#C31FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#C31FA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C31FA5
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C31FA5#FFFFFF#000000##FFFFFF
##C31FA51.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275DA8
Deuteranopia (green-blind)
#6476A1
Tritanopia (blue-blind)
#CE2C64
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #c31fa5;
/* rgb */ color: rgb(195, 31, 165);
/* oklch */ color: oklch(56.6% 0.231 337.5);
Tailwind
colors: {
  custom: {
    50: '#da72c0',
    500: '#c31fa5',
    950: '#000000',
  },
}
SCSS
$custom: #c31fa5;
$custom-light: #da72c0;
$custom-dark: #000000;
JSON
{
  "hex": "#c31fa5",
  "rgb": {
    "r": 195,
    "g": 31,
    "b": 165
  },
  "hsl": {
    "h": 310.976,
    "s": 72.566,
    "l": 44.314
  },
  "oklch": {
    "l": 0.56579,
    "c": 0.23138,
    "h": 337.5
  },
  "luminance": 0.15299
}

Semantic roles & 50–950 ramp

primary
#C31FA5
secondary
#6ED080
accent
#EF5A39
background
#FDF7FB
surface
#FBEDF7
border
#D4C8D0
text
#150912
muted
#837B81

Preview Lab

Preview with #C31FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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