#7A171B#7A171B

#7A171B is a dark, vivid red. Relative luminance 0.048; OKLCH L 38.0% C 0.133 H 24.5°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#7A171B
RGBrgb(122, 23, 27)
HSLhsl(358, 68%, 28%)
HSVhsv(358, 81%, 48%)
CMYKcmyk(0%, 81.1%, 77.9%, 52.2%)
CIE-LABlab(26.25, 41.77, 24.68)
CIE-LCHlch(26.25, 48.52, 30.58°)
OKLaboklab(38.04% 0.1212 0.0553)
OKLCHoklch(38.04% 0.133 24.5)
XYZxyz(8.5313, 4.8308, 1.5199)
Luminance0.0483 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A171B #177A76
analogous
#7A174C #7A171B #7A4417
triadic
#7A171B #1B7A17 #171B7A
tetradic
#7A171B #4C7A17 #177A76 #44177A
square
#7A171B #4C7A17 #177A76 #44177A
split-complementary
#7A171B #177A44 #174C7A
monochromatic
#1A0506 #470D10 #7A171B #AD2126 #D9333A

Accessibility & contrast

On white

10.68
#7A171B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#7A171B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A171B
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A171B#FFFFFF#000000##FFFFFF
##7A171B1.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36301A
Deuteranopia (green-blind)
#4E4617
Tritanopia (blue-blind)
#87001A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #7a171b;
/* rgb */ color: rgb(122, 23, 27);
/* oklch */ color: oklch(38.0% 0.133 24.5);
Tailwind
colors: {
  custom: {
    50: '#a85e57',
    500: '#7a171b',
    950: '#000000',
  },
}
SCSS
$custom: #7a171b;
$custom-light: #a85e57;
$custom-dark: #000000;
JSON
{
  "hex": "#7a171b",
  "rgb": {
    "r": 122,
    "g": 23,
    "b": 27
  },
  "hsl": {
    "h": 357.576,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.38038,
    "c": 0.13322,
    "h": 24.5
  },
  "luminance": 0.04829
}

Semantic roles & 50–950 ramp

primary
#7A171B
secondary
#3EAFAA
accent
#EBE43D
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110503
muted
#807978

Preview Lab

Preview with #7A171B

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

Preview Lab → · Contrast checker → · Palette generator →

#7A171B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva