#A71F31#A71F31

#A71F31 is a mid, vivid red. Relative luminance 0.094; OKLCH L 47.6% C 0.170 H 20.3°. Best body text is #FFFFFF at 7.28:1 contrast (WCAG AA passes).

Color values

HEX#A71F31
RGBrgb(167, 31, 49)
HSLhsl(352, 69%, 39%)
HSVhsv(352, 81%, 65%)
CMYKcmyk(0%, 81.4%, 70.7%, 34.5%)
CIE-LABlab(36.78, 54.12, 25.48)
CIE-LCHlch(36.78, 59.81, 25.21°)
OKLaboklab(47.61% 0.1594 0.059)
OKLCHoklch(47.61% 0.17 20.3)
XYZxyz(16.9827, 9.4199, 3.8291)
Luminance0.0942 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A71F31 #1FA795
analogous
#A71F75 #A71F31 #A7511F
triadic
#A71F31 #31A71F #1F31A7
tetradic
#A71F31 #75A71F #1FA795 #511FA7
square
#A71F31 #75A71F #1FA795 #511FA7
split-complementary
#A71F31 #1FA751 #1F75A7
monochromatic
#400C13 #731522 #A71F31 #D82B42 #E15F70

Accessibility & contrast

On white

7.28
#A71F31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.88
#A71F31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #A71F31
7.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A71F31#FFFFFF#000000##FFFFFF
##A71F311.007.282.887.28
#FFFFFF7.281.0021.001.00
#0000002.8821.001.0021.00
##FFFFFF7.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#494431
Deuteranopia (green-blind)
#6B612D
Tritanopia (blue-blind)
#B80027
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #a71f31;
/* rgb */ color: rgb(167, 31, 49);
/* oklch */ color: oklch(47.6% 0.170 20.3);
Tailwind
colors: {
  custom: {
    50: '#c96969',
    500: '#a71f31',
    950: '#000000',
  },
}
SCSS
$custom: #a71f31;
$custom-light: #c96969;
$custom-dark: #000000;
JSON
{
  "hex": "#a71f31",
  "rgb": {
    "r": 167,
    "g": 31,
    "b": 49
  },
  "hsl": {
    "h": 352.059,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.4761,
    "c": 0.17,
    "h": 20.3
  },
  "luminance": 0.09417
}

Semantic roles & 50–950 ramp

primary
#A71F31
secondary
#5CC6B8
accent
#ECD43C
background
#FDF6F6
surface
#FAECEB
border
#D3C7C6
text
#150706
muted
#837A7A

Preview Lab

Preview with #A71F31

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

Preview Lab → · Contrast checker → · Palette generator →

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