#7C171D#7C171D

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

Color values

HEX#7C171D
RGBrgb(124, 23, 29)
HSLhsl(356, 69%, 29%)
HSVhsv(356, 81%, 49%)
CMYKcmyk(0%, 81.5%, 76.6%, 51.4%)
CIE-LABlab(26.70, 42.50, 24.04)
CIE-LCHlch(26.70, 48.82, 29.49°)
OKLaboklab(38.46% 0.1237 0.0542)
OKLCHoklch(38.46% 0.135 23.7)
XYZxyz(8.8414, 4.9880, 1.6594)
Luminance0.0499 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C171D #177C76
analogous
#7C1750 #7C171D #7C4417
triadic
#7C171D #1D7C17 #171D7C
tetradic
#7C171D #507C17 #177C76 #44177C
square
#7C171D #507C17 #177C76 #44177C
split-complementary
#7C171D #177C44 #17507C
monochromatic
#1A0506 #480D11 #7C171D #B02129 #D9343E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C171D#FFFFFF#000000##FFFFFF
##7C171D1.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)
#36311C
Deuteranopia (green-blind)
#4F4719
Tritanopia (blue-blind)
#89001A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #7c171d;
/* rgb */ color: rgb(124, 23, 29);
/* oklch */ color: oklch(38.5% 0.135 23.7);
Tailwind
colors: {
  custom: {
    50: '#aa5f59',
    500: '#7c171d',
    950: '#000000',
  },
}
SCSS
$custom: #7c171d;
$custom-light: #aa5f59;
$custom-dark: #000000;
JSON
{
  "hex": "#7c171d",
  "rgb": {
    "r": 124,
    "g": 23,
    "b": 29
  },
  "hsl": {
    "h": 356.436,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.38459,
    "c": 0.13508,
    "h": 23.7
  },
  "luminance": 0.04987
}

Semantic roles & 50–950 ramp

primary
#7C171D
secondary
#3EB1AA
accent
#ECE13C
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110503
muted
#807978

Preview Lab

Preview with #7C171D

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

Preview Lab → · Contrast checker → · Palette generator →

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