#A1271A#A1271A

#A1271A is a mid, vivid red. Relative luminance 0.091; OKLCH L 46.9% C 0.160 H 30.2°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#A1271A
RGBrgb(161, 39, 26)
HSLhsl(6, 72%, 37%)
HSVhsv(6, 84%, 63%)
CMYKcmyk(0%, 75.8%, 83.9%, 36.9%)
CIE-LABlab(36.19, 48.89, 37.99)
CIE-LCHlch(36.19, 61.91, 37.85°)
OKLaboklab(46.87% 0.1387 0.0806)
OKLCHoklch(46.87% 0.16 30.2)
XYZxyz(15.6118, 9.1052, 1.9125)
Luminance0.0910 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1271A #1A94A1
analogous
#A11A51 #A1271A #A16B1A
triadic
#A1271A #1AA127 #271AA1
tetradic
#A1271A #51A11A #1A94A1 #6B1AA1
square
#A1271A #51A11A #1A94A1 #6B1AA1
split-complementary
#A1271A #1AA16B #1A51A1
monochromatic
#380D09 #6C1A11 #A1271A #D63423 #E36052

Accessibility & contrast

On white

7.45
#A1271A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#A1271A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #A1271A
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1271A#FFFFFF#000000##FFFFFF
##A1271A1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4417
Deuteranopia (green-blind)
#6B5F13
Tritanopia (blue-blind)
#B20025
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #a1271a;
/* rgb */ color: rgb(161, 39, 26);
/* oklch */ color: oklch(46.9% 0.160 30.2);
Tailwind
colors: {
  custom: {
    50: '#c66b58',
    500: '#a1271a',
    950: '#000000',
  },
}
SCSS
$custom: #a1271a;
$custom-light: #c66b58;
$custom-dark: #000000;
JSON
{
  "hex": "#a1271a",
  "rgb": {
    "r": 161,
    "g": 39,
    "b": 26
  },
  "hsl": {
    "h": 5.778,
    "s": 72.193,
    "l": 36.667
  },
  "oklch": {
    "l": 0.46865,
    "c": 0.16035,
    "h": 30.2
  },
  "luminance": 0.09103
}

Semantic roles & 50–950 ramp

primary
#A1271A
secondary
#51BBC6
accent
#DDEF39
background
#FDF6F5
surface
#FAECE9
border
#D3C7C5
text
#150703
muted
#837A78

Preview Lab

Preview with #A1271A

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

Preview Lab → · Contrast checker → · Palette generator →

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