#7B171D#7B171D

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

Color values

HEX#7B171D
RGBrgb(123, 23, 29)
HSLhsl(356, 68%, 29%)
HSVhsv(356, 81%, 48%)
CMYKcmyk(0%, 81.3%, 76.4%, 51.8%)
CIE-LABlab(26.49, 42.18, 23.74)
CIE-LCHlch(26.49, 48.40, 29.37°)
OKLaboklab(38.26% 0.1229 0.0536)
OKLCHoklch(38.26% 0.134 23.6)
XYZxyz(8.6976, 4.9138, 1.6527)
Luminance0.0491 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B171D #177B75
analogous
#7B174F #7B171D #7B4317
triadic
#7B171D #1D7B17 #171D7B
tetradic
#7B171D #4F7B17 #177B75 #43177B
square
#7B171D #4F7B17 #177B75 #43177B
split-complementary
#7B171D #177B43 #174F7B
monochromatic
#1A0506 #470D11 #7B171D #AF2129 #D9333D

Accessibility & contrast

On white

10.59
#7B171D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B171D
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B171D#FFFFFF#000000##FFFFFF
##7B171D1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36311C
Deuteranopia (green-blind)
#4F4619
Tritanopia (blue-blind)
#88001A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #7b171d;
/* rgb */ color: rgb(123, 23, 29);
/* oklch */ color: oklch(38.3% 0.134 23.6);
Tailwind
colors: {
  custom: {
    50: '#a95e59',
    500: '#7b171d',
    950: '#000000',
  },
}
SCSS
$custom: #7b171d;
$custom-light: #a95e59;
$custom-dark: #000000;
JSON
{
  "hex": "#7b171d",
  "rgb": {
    "r": 123,
    "g": 23,
    "b": 29
  },
  "hsl": {
    "h": 356.4,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.38263,
    "c": 0.13405,
    "h": 23.6
  },
  "luminance": 0.04912
}

Semantic roles & 50–950 ramp

primary
#7B171D
secondary
#3EB0A9
accent
#EBE13C
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110503
muted
#807978

Preview Lab

Preview with #7B171D

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

Preview Lab → · Contrast checker → · Palette generator →

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