#C31F54#C31F54

#C31F54 is a mid, vivid pink. Relative luminance 0.132; OKLCH L 53.5% C 0.197 H 9.4°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#C31F54
RGBrgb(195, 31, 84)
HSLhsl(341, 73%, 44%)
HSVhsv(341, 84%, 76%)
CMYKcmyk(0%, 84.1%, 56.9%, 23.5%)
CIE-LABlab(43.10, 63.89, 12.75)
CIE-LCHlch(43.10, 65.15, 11.29°)
OKLaboklab(53.49% 0.1941 0.0321)
OKLCHoklch(53.49% 0.197 9.4)
XYZxyz(24.5984, 13.2259, 9.6434)
Luminance0.1322 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C31F54 #1FC38E
analogous
#C31FA6 #C31F54 #C33C1F
triadic
#C31F54 #54C31F #1F54C3
tetradic
#C31F54 #A6C31F #1FC38E #3C1FC3
square
#C31F54 #A6C31F #1FC38E #3C1FC3
split-complementary
#C31F54 #1FC33C #1FA6C3
monochromatic
#590E27 #8E173D #C31F54 #E03F73 #E97499

Accessibility & contrast

On white

5.76
#C31F54 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#C31F54 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C31F54
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C31F54#FFFFFF#000000##FFFFFF
##C31F541.005.763.645.76
#FFFFFF5.761.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#505155
Deuteranopia (green-blind)
#797150
Tritanopia (blue-blind)
#D50038
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #c31f54;
/* rgb */ color: rgb(195, 31, 84);
/* oklch */ color: oklch(53.5% 0.197 9.4);
Tailwind
colors: {
  custom: {
    50: '#dd6f83',
    500: '#c31f54',
    950: '#000000',
  },
}
SCSS
$custom: #c31f54;
$custom-light: #dd6f83;
$custom-dark: #000000;
JSON
{
  "hex": "#c31f54",
  "rgb": {
    "r": 195,
    "g": 31,
    "b": 84
  },
  "hsl": {
    "h": 340.61,
    "s": 72.566,
    "l": 44.314
  },
  "oklch": {
    "l": 0.53488,
    "c": 0.19672,
    "h": 9.4
  },
  "luminance": 0.13222
}

Semantic roles & 50–950 ramp

primary
#C31F54
secondary
#6ED0B0
accent
#EFB439
background
#FEF7F8
surface
#FDEDEF
border
#D5C8CA
text
#16080A
muted
#847B7C

Preview Lab

Preview with #C31F54

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

Preview Lab → · Contrast checker → · Palette generator →

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