#7D171F#7D171F

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

Color values

HEX#7D171F
RGBrgb(125, 23, 31)
HSLhsl(355, 69%, 29%)
HSVhsv(355, 82%, 49%)
CMYKcmyk(0%, 81.6%, 75.2%, 51%)
CIE-LABlab(26.94, 42.90, 23.08)
CIE-LCHlch(26.94, 48.72, 28.28°)
OKLaboklab(38.69% 0.1254 0.0525)
OKLCHoklch(38.69% 0.136 22.7)
XYZxyz(9.0122, 5.0731, 1.8007)
Luminance0.0507 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D171F #177D75
analogous
#7D1752 #7D171F #7D4217
triadic
#7D171F #1F7D17 #171F7D
tetradic
#7D171F #527D17 #177D75 #42177D
square
#7D171F #527D17 #177D75 #42177D
split-complementary
#7D171F #177D42 #17527D
monochromatic
#1A0506 #490D12 #7D171F #B1212C #DA3542

Accessibility & contrast

On white

10.42
#7D171F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D171F
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D171F#FFFFFF#000000##FFFFFF
##7D171F1.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36321E
Deuteranopia (green-blind)
#50471B
Tritanopia (blue-blind)
#8A001B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7d171f;
/* rgb */ color: rgb(125, 23, 31);
/* oklch */ color: oklch(38.7% 0.136 22.7);
Tailwind
colors: {
  custom: {
    50: '#aa5f5a',
    500: '#7d171f',
    950: '#000000',
  },
}
SCSS
$custom: #7d171f;
$custom-light: #aa5f5a;
$custom-dark: #000000;
JSON
{
  "hex": "#7d171f",
  "rgb": {
    "r": 125,
    "g": 23,
    "b": 31
  },
  "hsl": {
    "h": 355.294,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.38685,
    "c": 0.13592,
    "h": 22.7
  },
  "luminance": 0.05072
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D171F

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

Preview Lab → · Contrast checker → · Palette generator →

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