#A1271E#A1271E

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

Color values

HEX#A1271E
RGBrgb(161, 39, 30)
HSLhsl(4, 69%, 37%)
HSVhsv(4, 81%, 63%)
CMYKcmyk(0%, 75.8%, 81.4%, 36.9%)
CIE-LABlab(36.22, 49.01, 35.86)
CIE-LCHlch(36.22, 60.73, 36.19°)
OKLaboklab(46.9% 0.1398 0.0773)
OKLCHoklch(46.9% 0.16 29)
XYZxyz(15.6597, 9.1243, 2.1647)
Luminance0.0912 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A1271E #1E98A1
analogous
#A11E57 #A1271E #A1681E
triadic
#A1271E #1EA127 #271EA1
tetradic
#A1271E #57A11E #1E98A1 #681EA1
square
#A1271E #57A11E #1E98A1 #681EA1
split-complementary
#A1271E #1EA168 #1E57A1
monochromatic
#3A0E0B #6D1B14 #A1271E #D53328 #E06359

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##A1271E#FFFFFF#000000##FFFFFF
##A1271E1.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)
#4C441C
Deuteranopia (green-blind)
#6A5F18
Tritanopia (blue-blind)
#B20026
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #a1271e;
/* rgb */ color: rgb(161, 39, 30);
/* oklch */ color: oklch(46.9% 0.160 29.0);
Tailwind
colors: {
  custom: {
    50: '#c66b5b',
    500: '#a1271e',
    950: '#000000',
  },
}
SCSS
$custom: #a1271e;
$custom-light: #c66b5b;
$custom-dark: #000000;
JSON
{
  "hex": "#a1271e",
  "rgb": {
    "r": 161,
    "g": 39,
    "b": 30
  },
  "hsl": {
    "h": 4.122,
    "s": 68.586,
    "l": 37.451
  },
  "oklch": {
    "l": 0.46904,
    "c": 0.15978,
    "h": 29
  },
  "luminance": 0.09122
}

Semantic roles & 50–950 ramp

primary
#A1271E
secondary
#57BCC4
accent
#DFEB3C
background
#FDF6F5
surface
#FAECE9
border
#D3C7C5
text
#150704
muted
#837A79

Preview Lab

Preview with #A1271E

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

Preview Lab → · Contrast checker → · Palette generator →

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