#7B171F#7B171F

#7B171F is a dark, vivid red. Relative luminance 0.049; OKLCH L 38.3% C 0.134 H 22.5°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#7B171F
RGBrgb(123, 23, 31)
HSLhsl(355, 68%, 29%)
HSVhsv(355, 81%, 48%)
CMYKcmyk(0%, 81.3%, 74.8%, 51.8%)
CIE-LABlab(26.52, 42.27, 22.48)
CIE-LCHlch(26.52, 47.88, 28.00°)
OKLaboklab(38.29% 0.1236 0.0513)
OKLCHoklch(38.29% 0.134 22.5)
XYZxyz(8.7231, 4.9240, 1.7872)
Luminance0.0492 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B171F #177B73
analogous
#7B1751 #7B171F #7B4117
triadic
#7B171F #1F7B17 #171F7B
tetradic
#7B171F #517B17 #177B73 #41177B
square
#7B171F #517B17 #177B73 #41177B
split-complementary
#7B171F #177B41 #17517B
monochromatic
#1A0506 #470D12 #7B171F #AF212C #D93341

Accessibility & contrast

On white

10.58
#7B171F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#7B171F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B171F
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B171F#FFFFFF#000000##FFFFFF
##7B171F1.0010.581.9810.58
#FFFFFF10.581.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b171f;
/* rgb */ color: rgb(123, 23, 31);
/* oklch */ color: oklch(38.3% 0.134 22.5);
Tailwind
colors: {
  custom: {
    50: '#a95f5a',
    500: '#7b171f',
    950: '#000000',
  },
}
SCSS
$custom: #7b171f;
$custom-light: #a95f5a;
$custom-dark: #000000;
JSON
{
  "hex": "#7b171f",
  "rgb": {
    "r": 123,
    "g": 23,
    "b": 31
  },
  "hsl": {
    "h": 355.2,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.38294,
    "c": 0.13385,
    "h": 22.5
  },
  "luminance": 0.04923
}

Semantic roles & 50–950 ramp

primary
#7B171F
secondary
#3EB0A7
accent
#EBDD3C
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110504
muted
#807979

Preview Lab

Preview with #7B171F

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

Preview Lab → · Contrast checker → · Palette generator →

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