#A7271E#A7271E

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

Color values

HEX#A7271E
RGBrgb(167, 39, 30)
HSLhsl(4, 70%, 39%)
HSVhsv(4, 82%, 65%)
CMYKcmyk(0%, 76.6%, 82%, 34.5%)
CIE-LABlab(37.41, 50.92, 37.43)
CIE-LCHlch(37.41, 63.20, 36.32°)
OKLaboklab(48.01% 0.1451 0.0802)
OKLCHoklch(48.01% 0.166 28.9)
XYZxyz(16.8983, 9.7630, 2.2227)
Luminance0.0976 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A7271E #1E9EA7
analogous
#A71E59 #A7271E #A76B1E
triadic
#A7271E #1EA727 #271EA7
tetradic
#A7271E #59A71E #1E9EA7 #6B1EA7
square
#A7271E #59A71E #1E9EA7 #6B1EA7
split-complementary
#A7271E #1EA76B #1E59A7
monochromatic
#3F0F0B #731B15 #A7271E #D9352A #E2665D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A7271E#FFFFFF#000000##FFFFFF
##A7271E1.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)
#4F461B
Deuteranopia (green-blind)
#6E6218
Tritanopia (blue-blind)
#B80026
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #a7271e;
/* rgb */ color: rgb(167, 39, 30);
/* oklch */ color: oklch(48.0% 0.166 28.9);
Tailwind
colors: {
  custom: {
    50: '#ca6c5b',
    500: '#a7271e',
    950: '#000000',
  },
}
SCSS
$custom: #a7271e;
$custom-light: #ca6c5b;
$custom-dark: #000000;
JSON
{
  "hex": "#a7271e",
  "rgb": {
    "r": 167,
    "g": 39,
    "b": 30
  },
  "hsl": {
    "h": 3.942,
    "s": 69.543,
    "l": 38.627
  },
  "oklch": {
    "l": 0.48005,
    "c": 0.16582,
    "h": 28.9
  },
  "luminance": 0.0976
}

Semantic roles & 50–950 ramp

primary
#A7271E
secondary
#5BBFC6
accent
#E1EC3B
background
#FDF6F5
surface
#FBECE9
border
#D4C7C5
text
#150704
muted
#837A79

Preview Lab

Preview with #A7271E

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

Preview Lab → · Contrast checker → · Palette generator →

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