#7B171A#7B171A

#7B171A is a dark, vivid red. Relative luminance 0.049; OKLCH L 38.2% C 0.134 H 25.1°. Best body text is #FFFFFF at 10.61:1 contrast (WCAG AA passes).

Color values

HEX#7B171A
RGBrgb(123, 23, 26)
HSLhsl(358, 68%, 29%)
HSVhsv(358, 81%, 48%)
CMYKcmyk(0%, 81.3%, 78.9%, 51.8%)
CIE-LABlab(26.45, 42.05, 25.60)
CIE-LCHlch(26.45, 49.23, 31.33°)
OKLaboklab(38.22% 0.1217 0.0569)
OKLCHoklch(38.22% 0.134 25.1)
XYZxyz(8.6623, 4.8997, 1.4667)
Luminance0.0490 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B171A #177B78
analogous
#7B174C #7B171A #7B4617
triadic
#7B171A #1A7B17 #171A7B
tetradic
#7B171A #4C7B17 #177B78 #46177B
square
#7B171A #4C7B17 #177B78 #46177B
split-complementary
#7B171A #177B46 #174C7B
monochromatic
#1A0505 #470D0F #7B171A #AF2125 #D93338

Accessibility & contrast

On white

10.61
#7B171A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#7B171A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B171A
10.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B171A#FFFFFF#000000##FFFFFF
##7B171A1.0010.611.9810.61
#FFFFFF10.611.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#363119
Deuteranopia (green-blind)
#4F4616
Tritanopia (blue-blind)
#880019
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #7b171a;
/* rgb */ color: rgb(123, 23, 26);
/* oklch */ color: oklch(38.2% 0.134 25.1);
Tailwind
colors: {
  custom: {
    50: '#a95e56',
    500: '#7b171a',
    950: '#000000',
  },
}
SCSS
$custom: #7b171a;
$custom-light: #a95e56;
$custom-dark: #000000;
JSON
{
  "hex": "#7b171a",
  "rgb": {
    "r": 123,
    "g": 23,
    "b": 26
  },
  "hsl": {
    "h": 358.2,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3822,
    "c": 0.13437,
    "h": 25.1
  },
  "luminance": 0.04898
}

Semantic roles & 50–950 ramp

primary
#7B171A
secondary
#3EB0AC
accent
#EBE63C
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110503
muted
#807978

Preview Lab

Preview with #7B171A

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

Preview Lab → · Contrast checker → · Palette generator →

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