#A1271B#A1271B

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

Color values

HEX#A1271B
RGBrgb(161, 39, 27)
HSLhsl(5, 71%, 37%)
HSVhsv(5, 83%, 63%)
CMYKcmyk(0%, 75.8%, 83.2%, 36.9%)
CIE-LABlab(36.19, 48.92, 37.46)
CIE-LCHlch(36.19, 61.61, 37.45°)
OKLaboklab(46.87% 0.1389 0.0798)
OKLCHoklch(46.87% 0.16 29.9)
XYZxyz(15.6232, 9.1097, 1.9724)
Luminance0.0911 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1271B #1B95A1
analogous
#A11B52 #A1271B #A16A1B
triadic
#A1271B #1BA127 #271BA1
tetradic
#A1271B #52A11B #1B95A1 #6A1BA1
square
#A1271B #52A11B #1B95A1 #6A1BA1
split-complementary
#A1271B #1BA16A #1B52A1
monochromatic
#380E09 #6D1A12 #A1271B #D53424 #E26154

Accessibility & contrast

On white

7.44
#A1271B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #A1271B
7.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A1271B#FFFFFF#000000##FFFFFF
##A1271B1.007.442.827.44
#FFFFFF7.441.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D4418
Deuteranopia (green-blind)
#6B5F15
Tritanopia (blue-blind)
#B20026
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #a1271b;
/* rgb */ color: rgb(161, 39, 27);
/* oklch */ color: oklch(46.9% 0.160 29.9);
Tailwind
colors: {
  custom: {
    50: '#c66b59',
    500: '#a1271b',
    950: '#000000',
  },
}
SCSS
$custom: #a1271b;
$custom-light: #c66b59;
$custom-dark: #000000;
JSON
{
  "hex": "#a1271b",
  "rgb": {
    "r": 161,
    "g": 39,
    "b": 27
  },
  "hsl": {
    "h": 5.373,
    "s": 71.277,
    "l": 36.863
  },
  "oklch": {
    "l": 0.46874,
    "c": 0.16021,
    "h": 29.9
  },
  "luminance": 0.09107
}

Semantic roles & 50–950 ramp

primary
#A1271B
secondary
#52BBC5
accent
#DEEE3A
background
#FDF6F5
surface
#FAECE9
border
#D3C7C5
text
#150703
muted
#837A78

Preview Lab

Preview with #A1271B

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

Preview Lab → · Contrast checker → · Palette generator →

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