#AB271B#AB271B

#AB271B is a mid, vivid red. Relative luminance 0.102; OKLCH L 48.7% C 0.170 H 29.7°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#AB271B
RGBrgb(171, 39, 27)
HSLhsl(5, 73%, 39%)
HSVhsv(5, 84%, 67%)
CMYKcmyk(0%, 77.2%, 84.2%, 32.9%)
CIE-LABlab(38.18, 52.09, 40.03)
CIE-LCHlch(38.18, 65.70, 37.55°)
OKLaboklab(48.71% 0.1478 0.0844)
OKLCHoklch(48.71% 0.17 29.7)
XYZxyz(17.7201, 10.1909, 2.0707)
Luminance0.1019 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#AB271B #1B9FAB
analogous
#AB1B57 #AB271B #AB6F1B
triadic
#AB271B #1BAB27 #271BAB
tetradic
#AB271B #57AB1B #1B9FAB #6F1BAB
square
#AB271B #57AB1B #1B9FAB #6F1BAB
split-complementary
#AB271B #1BAB6F #1B57AB
monochromatic
#410F0A #761B13 #AB271B #DD3626 #E5675B

Accessibility & contrast

On white

6.91
#AB271B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#AB271B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #AB271B
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##AB271B#FFFFFF#000000##FFFFFF
##AB271B1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#504718
Deuteranopia (green-blind)
#716413
Tritanopia (blue-blind)
#BD0026
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #ab271b;
/* rgb */ color: rgb(171, 39, 27);
/* oklch */ color: oklch(48.7% 0.170 29.7);
Tailwind
colors: {
  custom: {
    50: '#ce6d59',
    500: '#ab271b',
    950: '#000000',
  },
}
SCSS
$custom: #ab271b;
$custom-light: #ce6d59;
$custom-dark: #000000;
JSON
{
  "hex": "#ab271b",
  "rgb": {
    "r": 171,
    "g": 39,
    "b": 27
  },
  "hsl": {
    "h": 5,
    "s": 72.727,
    "l": 38.824
  },
  "oklch": {
    "l": 0.48712,
    "c": 0.17018,
    "h": 29.7
  },
  "luminance": 0.10188
}

Semantic roles & 50–950 ramp

primary
#AB271B
secondary
#59C0C9
accent
#E0EF38
background
#FEF6F5
surface
#FCECE9
border
#D5C7C5
text
#160804
muted
#847A79

Preview Lab

Preview with #AB271B

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

Preview Lab → · Contrast checker → · Palette generator →

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