#C31FA7#C31FA7

#C31FA7 is a mid, highly saturated pink. Relative luminance 0.154; OKLCH L 56.7% C 0.233 H 336.8°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#C31FA7
RGBrgb(195, 31, 167)
HSLhsl(310, 73%, 44%)
HSVhsv(310, 84%, 76%)
CMYKcmyk(0%, 84.1%, 14.4%, 23.5%)
CIE-LABlab(46.14, 72.46, -33.59)
CIE-LCHlch(46.14, 79.87, 335.13°)
OKLaboklab(56.68% 0.2138 -0.0917)
OKLCHoklch(56.68% 0.233 336.8)
XYZxyz(29.9713, 15.3750, 37.9410)
Luminance0.1537 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C31FA7 #1FC33B
analogous
#8D1FC3 #C31FA7 #C31F55
triadic
#C31FA7 #A7C31F #1FA7C3
tetradic
#C31FA7 #C38D1F #1FC33B #1F55C3
square
#C31FA7 #C38D1F #1FC33B #1F55C3
split-complementary
#C31FA7 #55C31F #1FC38D
monochromatic
#590E4D #8E177A #C31FA7 #E03FC5 #E974D5

Accessibility & contrast

On white

5.15
#C31FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #C31FA7
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C31FA7#FFFFFF#000000##FFFFFF
##C31FA71.005.154.075.15
#FFFFFF5.151.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255EAA
Deuteranopia (green-blind)
#6376A3
Tritanopia (blue-blind)
#CE2E65
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #c31fa7;
/* rgb */ color: rgb(195, 31, 167);
/* oklch */ color: oklch(56.7% 0.233 336.8);
Tailwind
colors: {
  custom: {
    50: '#da72c1',
    500: '#c31fa7',
    950: '#000000',
  },
}
SCSS
$custom: #c31fa7;
$custom-light: #da72c1;
$custom-dark: #000000;
JSON
{
  "hex": "#c31fa7",
  "rgb": {
    "r": 195,
    "g": 31,
    "b": 167
  },
  "hsl": {
    "h": 310.244,
    "s": 72.566,
    "l": 44.314
  },
  "oklch": {
    "l": 0.56682,
    "c": 0.23265,
    "h": 336.8
  },
  "luminance": 0.15372
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #C31FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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