#A6271F#A6271F

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

Color values

HEX#A6271F
RGBrgb(166, 39, 31)
HSLhsl(4, 69%, 39%)
HSVhsv(4, 81%, 65%)
CMYKcmyk(0%, 76.5%, 81.3%, 34.9%)
CIE-LABlab(37.22, 50.63, 36.63)
CIE-LCHlch(37.22, 62.50, 35.88°)
OKLaboklab(47.83% 0.1445 0.0789)
OKLCHoklch(47.83% 0.165 28.6)
XYZxyz(16.7007, 9.6596, 2.2812)
Luminance0.0966 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A6271F #1F9EA6
analogous
#A61F5A #A6271F #A66A1F
triadic
#A6271F #1FA627 #271FA6
tetradic
#A6271F #5AA61F #1F9EA6 #6A1FA6
square
#A6271F #5AA61F #1F9EA6 #6A1FA6
split-complementary
#A6271F #1FA66A #1F5AA6
monochromatic
#3F0F0C #721B15 #A6271F #D7352B #E1665E

Accessibility & contrast

On white

7.16
#A6271F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #A6271F
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A6271F#FFFFFF#000000##FFFFFF
##A6271F1.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E461D
Deuteranopia (green-blind)
#6D6219
Tritanopia (blue-blind)
#B70027
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #a6271f;
/* rgb */ color: rgb(166, 39, 31);
/* oklch */ color: oklch(47.8% 0.165 28.6);
Tailwind
colors: {
  custom: {
    50: '#ca6c5c',
    500: '#a6271f',
    950: '#000000',
  },
}
SCSS
$custom: #a6271f;
$custom-light: #ca6c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#a6271f",
  "rgb": {
    "r": 166,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 3.556,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.47832,
    "c": 0.16468,
    "h": 28.6
  },
  "luminance": 0.09657
}

Semantic roles & 50–950 ramp

primary
#A6271F
secondary
#5BBFC5
accent
#E1EB3C
background
#FDF6F5
surface
#FBECE9
border
#D4C7C5
text
#150704
muted
#837A79

Preview Lab

Preview with #A6271F

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

Preview Lab → · Contrast checker → · Palette generator →

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