#A8271F#A8271F

#A8271F is a mid, vivid red. Relative luminance 0.099; OKLCH L 48.2% C 0.167 H 28.6°. Best body text is #FFFFFF at 7.06:1 contrast (WCAG AA passes).

Color values

HEX#A8271F
RGBrgb(168, 39, 31)
HSLhsl(4, 69%, 39%)
HSVhsv(4, 82%, 66%)
CMYKcmyk(0%, 76.8%, 81.5%, 34.1%)
CIE-LABlab(37.62, 51.27, 37.16)
CIE-LCHlch(37.62, 63.31, 35.93°)
OKLaboklab(48.2% 0.1463 0.0799)
OKLCHoklch(48.2% 0.167 28.6)
XYZxyz(17.1234, 9.8775, 2.3010)
Luminance0.0988 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A8271F #1FA0A8
analogous
#A81F5C #A8271F #A86C1F
triadic
#A8271F #1FA827 #271FA8
tetradic
#A8271F #5CA81F #1FA0A8 #6C1FA8
square
#A8271F #5CA81F #1FA0A8 #6C1FA8
split-complementary
#A8271F #1FA86C #1F5CA8
monochromatic
#410F0C #741B15 #A8271F #D8362C #E26760

Accessibility & contrast

On white

7.06
#A8271F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#A8271F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #A8271F
7.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A8271F#FFFFFF#000000##FFFFFF
##A8271F1.007.062.977.06
#FFFFFF7.061.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F471C
Deuteranopia (green-blind)
#6F6319
Tritanopia (blue-blind)
#B90027
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #a8271f;
/* rgb */ color: rgb(168, 39, 31);
/* oklch */ color: oklch(48.2% 0.167 28.6);
Tailwind
colors: {
  custom: {
    50: '#cb6c5c',
    500: '#a8271f',
    950: '#000000',
  },
}
SCSS
$custom: #a8271f;
$custom-light: #cb6c5c;
$custom-dark: #000000;
JSON
{
  "hex": "#a8271f",
  "rgb": {
    "r": 168,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 3.504,
    "s": 68.844,
    "l": 39.02
  },
  "oklch": {
    "l": 0.48199,
    "c": 0.16667,
    "h": 28.6
  },
  "luminance": 0.09875
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #A8271F

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

Preview Lab → · Contrast checker → · Palette generator →

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