#C31D4E#C31D4E

#C31D4E is a mid, vivid pink. Relative luminance 0.130; OKLCH L 53.2% C 0.197 H 11.6°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#C31D4E
RGBrgb(195, 29, 78)
HSLhsl(342, 74%, 44%)
HSVhsv(342, 85%, 76%)
CMYKcmyk(0%, 85.1%, 60%, 23.5%)
CIE-LABlab(42.82, 63.93, 16.13)
CIE-LCHlch(42.82, 65.93, 14.16°)
OKLaboklab(53.23% 0.1932 0.0398)
OKLCHoklch(53.23% 0.197 11.6)
XYZxyz(24.3228, 13.0346, 8.4415)
Luminance0.1303 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C31D4E #1DC392
analogous
#C31DA1 #C31D4E #C33F1D
triadic
#C31D4E #4EC31D #1D4EC3
tetradic
#C31D4E #A1C31D #1DC392 #3F1DC3
square
#C31D4E #A1C31D #1DC392 #3F1DC3
split-complementary
#C31D4E #1DC33F #1DA1C3
monochromatic
#580D23 #8E1539 #C31D4E #E23B6C #EA7194

Accessibility & contrast

On white

5.82
#C31D4E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#C31D4E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #C31D4E
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C31D4E#FFFFFF#000000##FFFFFF
##C31D4E1.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#50504F
Deuteranopia (green-blind)
#7A714A
Tritanopia (blue-blind)
#D60034
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #c31d4e;
/* rgb */ color: rgb(195, 29, 78);
/* oklch */ color: oklch(53.2% 0.197 11.6);
Tailwind
colors: {
  custom: {
    50: '#dd6e7f',
    500: '#c31d4e',
    950: '#000000',
  },
}
SCSS
$custom: #c31d4e;
$custom-light: #dd6e7f;
$custom-dark: #000000;
JSON
{
  "hex": "#c31d4e",
  "rgb": {
    "r": 195,
    "g": 29,
    "b": 78
  },
  "hsl": {
    "h": 342.289,
    "s": 74.107,
    "l": 43.922
  },
  "oklch": {
    "l": 0.53234,
    "c": 0.19726,
    "h": 11.6
  },
  "luminance": 0.13031
}

Semantic roles & 50–950 ramp

primary
#C31D4E
secondary
#6CD0B3
accent
#F1BA37
background
#FEF7F7
surface
#FDEDEE
border
#D5C8C9
text
#16080A
muted
#847B7C

Preview Lab

Preview with #C31D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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