#A7271B#A7271B

#A7271B is a mid, vivid red. Relative luminance 0.097; OKLCH L 48.0% C 0.166 H 29.8°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#A7271B
RGBrgb(167, 39, 27)
HSLhsl(5, 72%, 38%)
HSVhsv(5, 84%, 65%)
CMYKcmyk(0%, 76.6%, 83.8%, 34.5%)
CIE-LABlab(37.39, 50.83, 39.01)
CIE-LCHlch(37.39, 64.07, 37.50°)
OKLaboklab(47.98% 0.1443 0.0826)
OKLCHoklch(47.98% 0.166 29.8)
XYZxyz(16.8618, 9.7484, 2.0305)
Luminance0.0975 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7271B #1B9BA7
analogous
#A71B55 #A7271B #A76D1B
triadic
#A7271B #1BA727 #271BA7
tetradic
#A7271B #55A71B #1B9BA7 #6D1BA7
square
#A7271B #55A71B #1B9BA7 #6D1BA7
split-complementary
#A7271B #1BA76D #1B55A7
monochromatic
#3E0E0A #721B12 #A7271B #DC3324 #E46458

Accessibility & contrast

On white

7.12
#A7271B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#A7271B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #A7271B
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7271B#FFFFFF#000000##FFFFFF
##A7271B1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4618
Deuteranopia (green-blind)
#6E6214
Tritanopia (blue-blind)
#B80026
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #a7271b;
/* rgb */ color: rgb(167, 39, 27);
/* oklch */ color: oklch(48.0% 0.166 29.8);
Tailwind
colors: {
  custom: {
    50: '#cb6c59',
    500: '#a7271b',
    950: '#000000',
  },
}
SCSS
$custom: #a7271b;
$custom-light: #cb6c59;
$custom-dark: #000000;
JSON
{
  "hex": "#a7271b",
  "rgb": {
    "r": 167,
    "g": 39,
    "b": 27
  },
  "hsl": {
    "h": 5.143,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.47977,
    "c": 0.16623,
    "h": 29.8
  },
  "luminance": 0.09746
}

Semantic roles & 50–950 ramp

primary
#A7271B
secondary
#56BEC8
accent
#DFEF39
background
#FDF6F5
surface
#FBECE9
border
#D4C7C5
text
#150703
muted
#837A78

Preview Lab

Preview with #A7271B

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

Preview Lab → · Contrast checker → · Palette generator →

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