#A7271C#A7271C

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

Color values

HEX#A7271C
RGBrgb(167, 39, 28)
HSLhsl(5, 71%, 38%)
HSVhsv(5, 83%, 65%)
CMYKcmyk(0%, 76.6%, 83.2%, 34.5%)
CIE-LABlab(37.40, 50.86, 38.49)
CIE-LCHlch(37.40, 63.78, 37.12°)
OKLaboklab(47.99% 0.1445 0.0818)
OKLCHoklch(47.99% 0.166 29.5)
XYZxyz(16.8735, 9.7531, 2.0925)
Luminance0.0975 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7271C #1C9CA7
analogous
#A71C56 #A7271C #A76C1C
triadic
#A7271C #1CA727 #271CA7
tetradic
#A7271C #56A71C #1C9CA7 #6C1CA7
square
#A7271C #56A71C #1C9CA7 #6C1CA7
split-complementary
#A7271C #1CA76C #1C56A7
monochromatic
#3E0F0A #731B13 #A7271C #DB3426 #E3655A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A7271C#FFFFFF#000000##FFFFFF
##A7271C1.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)
#4F4619
Deuteranopia (green-blind)
#6E6215
Tritanopia (blue-blind)
#B80026
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #a7271c;
/* rgb */ color: rgb(167, 39, 28);
/* oklch */ color: oklch(48.0% 0.166 29.5);
Tailwind
colors: {
  custom: {
    50: '#ca6c5a',
    500: '#a7271c',
    950: '#000000',
  },
}
SCSS
$custom: #a7271c;
$custom-light: #ca6c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#a7271c",
  "rgb": {
    "r": 167,
    "g": 39,
    "b": 28
  },
  "hsl": {
    "h": 4.748,
    "s": 71.282,
    "l": 38.235
  },
  "oklch": {
    "l": 0.47986,
    "c": 0.16609,
    "h": 29.5
  },
  "luminance": 0.0975
}

Semantic roles & 50–950 ramp

primary
#A7271C
secondary
#58BEC7
accent
#E0EE3A
background
#FDF6F5
surface
#FBECE9
border
#D4C7C5
text
#150704
muted
#837A79

Preview Lab

Preview with #A7271C

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

Preview Lab → · Contrast checker → · Palette generator →

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