#7C171E#7C171E

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

Color values

HEX#7C171E
RGBrgb(124, 23, 30)
HSLhsl(356, 69%, 29%)
HSVhsv(356, 81%, 49%)
CMYKcmyk(0%, 81.5%, 75.8%, 51.4%)
CIE-LABlab(26.71, 42.54, 23.41)
CIE-LCHlch(26.71, 48.56, 28.82°)
OKLaboklab(38.47% 0.1241 0.0531)
OKLCHoklch(38.47% 0.135 23.2)
XYZxyz(8.8540, 4.9930, 1.7256)
Luminance0.0499 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C171E #177C75
analogous
#7C1751 #7C171E #7C4317
triadic
#7C171E #1E7C17 #171E7C
tetradic
#7C171E #517C17 #177C75 #43177C
square
#7C171E #517C17 #177C75 #43177C
split-complementary
#7C171E #177C43 #17517C
monochromatic
#1A0506 #480D12 #7C171E #B0212A #D93440

Accessibility & contrast

On white

10.51
#7C171E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#7C171E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C171E
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C171E#FFFFFF#000000##FFFFFF
##7C171E1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36311D
Deuteranopia (green-blind)
#4F471A
Tritanopia (blue-blind)
#89001B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #7c171e;
/* rgb */ color: rgb(124, 23, 30);
/* oklch */ color: oklch(38.5% 0.135 23.2);
Tailwind
colors: {
  custom: {
    50: '#aa5f59',
    500: '#7c171e',
    950: '#000000',
  },
}
SCSS
$custom: #7c171e;
$custom-light: #aa5f59;
$custom-dark: #000000;
JSON
{
  "hex": "#7c171e",
  "rgb": {
    "r": 124,
    "g": 23,
    "b": 30
  },
  "hsl": {
    "h": 355.842,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.38474,
    "c": 0.13498,
    "h": 23.2
  },
  "luminance": 0.04992
}

Semantic roles & 50–950 ramp

primary
#7C171E
secondary
#3EB1A9
accent
#ECDF3C
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110503
muted
#807978

Preview Lab

Preview with #7C171E

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

Preview Lab → · Contrast checker → · Palette generator →

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