#A8271C#A8271C

#A8271C is a mid, vivid red. Relative luminance 0.099; OKLCH L 48.2% C 0.167 H 29.5°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#A8271C
RGBrgb(168, 39, 28)
HSLhsl(5, 71%, 38%)
HSVhsv(5, 83%, 66%)
CMYKcmyk(0%, 76.8%, 83.3%, 34.1%)
CIE-LABlab(37.59, 51.18, 38.75)
CIE-LCHlch(37.59, 64.19, 37.13°)
OKLaboklab(48.17% 0.1454 0.0823)
OKLCHoklch(48.17% 0.167 29.5)
XYZxyz(17.0857, 9.8624, 2.1024)
Luminance0.0986 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8271C #1C9DA8
analogous
#A81C57 #A8271C #A86D1C
triadic
#A8271C #1CA827 #271CA8
tetradic
#A8271C #57A81C #1C9DA8 #6D1CA8
square
#A8271C #57A81C #1C9DA8 #6D1CA8
split-complementary
#A8271C #1CA86D #1C57A8
monochromatic
#3F0F0B #741B13 #A8271C #DB3426 #E4665B

Accessibility & contrast

On white

7.07
#A8271C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#A8271C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #A8271C
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8271C#FFFFFF#000000##FFFFFF
##A8271C1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F4619
Deuteranopia (green-blind)
#6F6315
Tritanopia (blue-blind)
#B90026
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #a8271c;
/* rgb */ color: rgb(168, 39, 28);
/* oklch */ color: oklch(48.2% 0.167 29.5);
Tailwind
colors: {
  custom: {
    50: '#cb6c5a',
    500: '#a8271c',
    950: '#000000',
  },
}
SCSS
$custom: #a8271c;
$custom-light: #cb6c5a;
$custom-dark: #000000;
JSON
{
  "hex": "#a8271c",
  "rgb": {
    "r": 168,
    "g": 39,
    "b": 28
  },
  "hsl": {
    "h": 4.714,
    "s": 71.429,
    "l": 38.431
  },
  "oklch": {
    "l": 0.4817,
    "c": 0.16708,
    "h": 29.5
  },
  "luminance": 0.0986
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A8271C

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

Preview Lab → · Contrast checker → · Palette generator →

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