#A7271F#A7271F

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

Color values

HEX#A7271F
RGBrgb(167, 39, 31)
HSLhsl(4, 69%, 39%)
HSVhsv(4, 81%, 65%)
CMYKcmyk(0%, 76.6%, 81.4%, 34.5%)
CIE-LABlab(37.42, 50.95, 36.89)
CIE-LCHlch(37.42, 62.91, 35.91°)
OKLaboklab(48.02% 0.1454 0.0794)
OKLCHoklch(48.02% 0.166 28.6)
XYZxyz(16.9112, 9.7681, 2.2911)
Luminance0.0977 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7271F #1F9FA7
analogous
#A71F5B #A7271F #A76B1F
triadic
#A7271F #1FA727 #271FA7
tetradic
#A7271F #5BA71F #1F9FA7 #6B1FA7
square
#A7271F #5BA71F #1F9FA7 #6B1FA7
split-complementary
#A7271F #1FA76B #1F5BA7
monochromatic
#400F0C #731B15 #A7271F #D8362B #E1675F

Accessibility & contrast

On white

7.11
#A7271F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #A7271F
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A7271F#FFFFFF#000000##FFFFFF
##A7271F1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F461C
Deuteranopia (green-blind)
#6E6219
Tritanopia (blue-blind)
#B80027
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #a7271f;
/* rgb */ color: rgb(167, 39, 31);
/* oklch */ color: oklch(48.0% 0.166 28.6);
Tailwind
colors: {
  custom: {
    50: '#ca6c5c',
    500: '#a7271f',
    950: '#000000',
  },
}
SCSS
$custom: #a7271f;
$custom-light: #ca6c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#a7271f",
  "rgb": {
    "r": 167,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 3.529,
    "s": 68.687,
    "l": 38.824
  },
  "oklch": {
    "l": 0.48015,
    "c": 0.16567,
    "h": 28.6
  },
  "luminance": 0.09765
}

Semantic roles & 50–950 ramp

primary
#A7271F
secondary
#5CC0C6
accent
#E1EC3C
background
#FDF6F5
surface
#FBECE9
border
#D4C7C5
text
#150704
muted
#837A79

Preview Lab

Preview with #A7271F

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

Preview Lab → · Contrast checker → · Palette generator →

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