#A6271E#A6271E

#A6271E is a mid, vivid red. Relative luminance 0.097; OKLCH L 47.8% C 0.165 H 28.9°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#A6271E
RGBrgb(166, 39, 30)
HSLhsl(4, 69%, 38%)
HSVhsv(4, 82%, 65%)
CMYKcmyk(0%, 76.5%, 81.9%, 34.9%)
CIE-LABlab(37.21, 50.60, 37.17)
CIE-LCHlch(37.21, 62.79, 36.30°)
OKLaboklab(47.82% 0.1442 0.0797)
OKLCHoklch(47.82% 0.165 28.9)
XYZxyz(16.6878, 9.6544, 2.2129)
Luminance0.0965 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6271E #1E9DA6
analogous
#A61E59 #A6271E #A66B1E
triadic
#A6271E #1EA627 #271EA6
tetradic
#A6271E #59A61E #1E9DA6 #6B1EA6
square
#A6271E #59A61E #1E9DA6 #6B1EA6
split-complementary
#A6271E #1EA66B #1E59A6
monochromatic
#3E0F0B #721B15 #A6271E #D83529 #E2665D

Accessibility & contrast

On white

7.17
#A6271E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#A6271E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #A6271E
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6271E#FFFFFF#000000##FFFFFF
##A6271E1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E461B
Deuteranopia (green-blind)
#6E6218
Tritanopia (blue-blind)
#B70026
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #a6271e;
/* rgb */ color: rgb(166, 39, 30);
/* oklch */ color: oklch(47.8% 0.165 28.9);
Tailwind
colors: {
  custom: {
    50: '#ca6c5b',
    500: '#a6271e',
    950: '#000000',
  },
}
SCSS
$custom: #a6271e;
$custom-light: #ca6c5b;
$custom-dark: #000000;
JSON
{
  "hex": "#a6271e",
  "rgb": {
    "r": 166,
    "g": 39,
    "b": 30
  },
  "hsl": {
    "h": 3.971,
    "s": 69.388,
    "l": 38.431
  },
  "oklch": {
    "l": 0.47822,
    "c": 0.16481,
    "h": 28.9
  },
  "luminance": 0.09652
}

Semantic roles & 50–950 ramp

primary
#A6271E
secondary
#5ABFC6
accent
#E1EC3C
background
#FDF6F5
surface
#FBECE9
border
#D4C7C5
text
#150704
muted
#837A79

Preview Lab

Preview with #A6271E

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

Preview Lab → · Contrast checker → · Palette generator →

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