#7C171A#7C171A

#7C171A is a dark, vivid red. Relative luminance 0.050; OKLCH L 38.4% C 0.135 H 25.1°. Best body text is #FFFFFF at 10.53:1 contrast (WCAG AA passes).

Color values

HEX#7C171A
RGBrgb(124, 23, 26)
HSLhsl(358, 69%, 29%)
HSVhsv(358, 81%, 49%)
CMYKcmyk(0%, 81.5%, 79%, 51.4%)
CIE-LABlab(26.66, 42.37, 25.89)
CIE-LCHlch(26.66, 49.65, 31.43°)
OKLaboklab(38.42% 0.1226 0.0575)
OKLCHoklch(38.42% 0.135 25.1)
XYZxyz(8.8061, 4.9739, 1.4735)
Luminance0.0497 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C171A #177C79
analogous
#7C174D #7C171A #7C4717
triadic
#7C171A #1A7C17 #171A7C
tetradic
#7C171A #4D7C17 #177C79 #47177C
square
#7C171A #4D7C17 #177C79 #47177C
split-complementary
#7C171A #177C47 #174D7C
monochromatic
#1A0505 #480D0F #7C171A #B02125 #D93439

Accessibility & contrast

On white

10.53
#7C171A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#7C171A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C171A
10.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C171A#FFFFFF#000000##FFFFFF
##7C171A1.0010.531.9910.53
#FFFFFF10.531.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373119
Deuteranopia (green-blind)
#4F4716
Tritanopia (blue-blind)
#890019
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #7c171a;
/* rgb */ color: rgb(124, 23, 26);
/* oklch */ color: oklch(38.4% 0.135 25.1);
Tailwind
colors: {
  custom: {
    50: '#aa5f56',
    500: '#7c171a',
    950: '#000000',
  },
}
SCSS
$custom: #7c171a;
$custom-light: #aa5f56;
$custom-dark: #000000;
JSON
{
  "hex": "#7c171a",
  "rgb": {
    "r": 124,
    "g": 23,
    "b": 26
  },
  "hsl": {
    "h": 358.218,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.38416,
    "c": 0.13541,
    "h": 25.1
  },
  "luminance": 0.04972
}

Semantic roles & 50–950 ramp

primary
#7C171A
secondary
#3EB1AD
accent
#ECE63C
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110503
muted
#807978

Preview Lab

Preview with #7C171A

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

Preview Lab → · Contrast checker → · Palette generator →

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