#7D171B#7D171B

#7D171B is a dark, vivid red. Relative luminance 0.051; OKLCH L 38.6% C 0.136 H 24.7°. Best body text is #FFFFFF at 10.45:1 contrast (WCAG AA passes).

Color values

HEX#7D171B
RGBrgb(125, 23, 27)
HSLhsl(358, 69%, 29%)
HSVhsv(358, 82%, 49%)
CMYKcmyk(0%, 81.6%, 78.4%, 51%)
CIE-LABlab(26.89, 42.73, 25.57)
CIE-LCHlch(26.89, 49.80, 30.90°)
OKLaboklab(38.63% 0.1238 0.057)
OKLCHoklch(38.63% 0.136 24.7)
XYZxyz(8.9627, 5.0533, 1.5402)
Luminance0.0505 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D171B #177D79
analogous
#7D174E #7D171B #7D4617
triadic
#7D171B #1B7D17 #171B7D
tetradic
#7D171B #4E7D17 #177D79 #46177D
square
#7D171B #4E7D17 #177D79 #46177D
split-complementary
#7D171B #177D46 #174E7D
monochromatic
#1A0506 #490D10 #7D171B #B12126 #DA353B

Accessibility & contrast

On white

10.45
#7D171B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#7D171B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D171B
10.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D171B#FFFFFF#000000##FFFFFF
##7D171B1.0010.452.0110.45
#FFFFFF10.451.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37321A
Deuteranopia (green-blind)
#504717
Tritanopia (blue-blind)
#8A001A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7d171b;
/* rgb */ color: rgb(125, 23, 27);
/* oklch */ color: oklch(38.6% 0.136 24.7);
Tailwind
colors: {
  custom: {
    50: '#ab5f57',
    500: '#7d171b',
    950: '#000000',
  },
}
SCSS
$custom: #7d171b;
$custom-light: #ab5f57;
$custom-dark: #000000;
JSON
{
  "hex": "#7d171b",
  "rgb": {
    "r": 125,
    "g": 23,
    "b": 27
  },
  "hsl": {
    "h": 357.647,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.38626,
    "c": 0.13632,
    "h": 24.7
  },
  "luminance": 0.05052
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D171B

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

Preview Lab → · Contrast checker → · Palette generator →

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