#7A171A#7A171A

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

Color values

HEX#7A171A
RGBrgb(122, 23, 26)
HSLhsl(358, 68%, 28%)
HSVhsv(358, 81%, 48%)
CMYKcmyk(0%, 81.1%, 78.7%, 52.2%)
CIE-LABlab(26.23, 41.73, 25.30)
CIE-LCHlch(26.23, 48.80, 31.23°)
OKLaboklab(38.02% 0.1208 0.0564)
OKLCHoklch(38.02% 0.133 25)
XYZxyz(8.5199, 4.8263, 1.4600)
Luminance0.0483 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A171A #177A77
analogous
#7A174B #7A171A #7A4517
triadic
#7A171A #1A7A17 #171A7A
tetradic
#7A171A #4B7A17 #177A77 #45177A
square
#7A171A #4B7A17 #177A77 #45177A
split-complementary
#7A171A #177A45 #174B7A
monochromatic
#1A0505 #470D0F #7A171A #AD2125 #D93338

Accessibility & contrast

On white

10.69
#7A171A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A171A
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A171A#FFFFFF#000000##FFFFFF
##7A171A1.0010.691.9710.69
#FFFFFF10.691.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#363019
Deuteranopia (green-blind)
#4E4616
Tritanopia (blue-blind)
#870019
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #7a171a;
/* rgb */ color: rgb(122, 23, 26);
/* oklch */ color: oklch(38.0% 0.133 25.0);
Tailwind
colors: {
  custom: {
    50: '#a85e56',
    500: '#7a171a',
    950: '#000000',
  },
}
SCSS
$custom: #7a171a;
$custom-light: #a85e56;
$custom-dark: #000000;
JSON
{
  "hex": "#7a171a",
  "rgb": {
    "r": 122,
    "g": 23,
    "b": 26
  },
  "hsl": {
    "h": 358.182,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.38024,
    "c": 0.13333,
    "h": 25
  },
  "luminance": 0.04825
}

Semantic roles & 50–950 ramp

primary
#7A171A
secondary
#3EAFAC
accent
#EBE63D
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110503
muted
#807978

Preview Lab

Preview with #7A171A

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

Preview Lab → · Contrast checker → · Palette generator →

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