#7C171F#7C171F

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

Color values

HEX#7C171F
RGBrgb(124, 23, 31)
HSLhsl(355, 69%, 29%)
HSVhsv(355, 81%, 49%)
CMYKcmyk(0%, 81.5%, 75%, 51.4%)
CIE-LABlab(26.73, 42.59, 22.78)
CIE-LCHlch(26.73, 48.30, 28.14°)
OKLaboklab(38.49% 0.1245 0.0519)
OKLCHoklch(38.49% 0.135 22.6)
XYZxyz(8.8669, 4.9982, 1.7939)
Luminance0.0500 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C171F #177C74
analogous
#7C1752 #7C171F #7C4217
triadic
#7C171F #1F7C17 #171F7C
tetradic
#7C171F #527C17 #177C74 #42177C
square
#7C171F #527C17 #177C74 #42177C
split-complementary
#7C171F #177C42 #17527C
monochromatic
#1A0506 #480D12 #7C171F #B0212C #D93441

Accessibility & contrast

On white

10.50
#7C171F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C171F
10.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C171F#FFFFFF#000000##FFFFFF
##7C171F1.0010.502.0010.50
#FFFFFF10.501.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.501.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c171f;
/* rgb */ color: rgb(124, 23, 31);
/* oklch */ color: oklch(38.5% 0.135 22.6);
Tailwind
colors: {
  custom: {
    50: '#a95f5a',
    500: '#7c171f',
    950: '#000000',
  },
}
SCSS
$custom: #7c171f;
$custom-light: #a95f5a;
$custom-dark: #000000;
JSON
{
  "hex": "#7c171f",
  "rgb": {
    "r": 124,
    "g": 23,
    "b": 31
  },
  "hsl": {
    "h": 355.248,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3849,
    "c": 0.13489,
    "h": 22.6
  },
  "luminance": 0.04997
}

Semantic roles & 50–950 ramp

primary
#7C171F
secondary
#3EB1A8
accent
#ECDE3C
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110504
muted
#807979

Preview Lab

Preview with #7C171F

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

Preview Lab → · Contrast checker → · Palette generator →

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