#7C171B#7C171B

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

Color values

HEX#7C171B
RGBrgb(124, 23, 27)
HSLhsl(358, 69%, 29%)
HSVhsv(358, 81%, 49%)
CMYKcmyk(0%, 81.5%, 78.2%, 51.4%)
CIE-LABlab(26.67, 42.41, 25.28)
CIE-LCHlch(26.67, 49.37, 30.80°)
OKLaboklab(38.43% 0.123 0.0564)
OKLCHoklch(38.43% 0.135 24.6)
XYZxyz(8.8175, 4.9784, 1.5334)
Luminance0.0498 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C171B #177C78
analogous
#7C174E #7C171B #7C4617
triadic
#7C171B #1B7C17 #171B7C
tetradic
#7C171B #4E7C17 #177C78 #46177C
square
#7C171B #4E7C17 #177C78 #46177C
split-complementary
#7C171B #177C46 #174E7C
monochromatic
#1A0506 #480D10 #7C171B #B02126 #D9343B

Accessibility & contrast

On white

10.52
#7C171B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C171B
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C171B#FFFFFF#000000##FFFFFF
##7C171B1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36311A
Deuteranopia (green-blind)
#4F4717
Tritanopia (blue-blind)
#89001A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #7c171b;
/* rgb */ color: rgb(124, 23, 27);
/* oklch */ color: oklch(38.4% 0.135 24.6);
Tailwind
colors: {
  custom: {
    50: '#aa5f57',
    500: '#7c171b',
    950: '#000000',
  },
}
SCSS
$custom: #7c171b;
$custom-light: #aa5f57;
$custom-dark: #000000;
JSON
{
  "hex": "#7c171b",
  "rgb": {
    "r": 124,
    "g": 23,
    "b": 27
  },
  "hsl": {
    "h": 357.624,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3843,
    "c": 0.1353,
    "h": 24.6
  },
  "luminance": 0.04977
}

Semantic roles & 50–950 ramp

primary
#7C171B
secondary
#3EB1AC
accent
#ECE53C
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110503
muted
#807978

Preview Lab

Preview with #7C171B

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

Preview Lab → · Contrast checker → · Palette generator →

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