#7B171B#7B171B

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

Color values

HEX#7B171B
RGBrgb(123, 23, 27)
HSLhsl(358, 68%, 29%)
HSVhsv(358, 81%, 48%)
CMYKcmyk(0%, 81.3%, 78%, 51.8%)
CIE-LABlab(26.46, 42.09, 24.98)
CIE-LCHlch(26.46, 48.94, 30.69°)
OKLaboklab(38.23% 0.1221 0.0559)
OKLCHoklch(38.23% 0.134 24.6)
XYZxyz(8.6736, 4.9043, 1.5266)
Luminance0.0490 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B171B #177B77
analogous
#7B174D #7B171B #7B4517
triadic
#7B171B #1B7B17 #171B7B
tetradic
#7B171B #4D7B17 #177B77 #45177B
square
#7B171B #4D7B17 #177B77 #45177B
split-complementary
#7B171B #177B45 #174D7B
monochromatic
#1A0506 #470D10 #7B171B #AF2126 #D9333A

Accessibility & contrast

On white

10.60
#7B171B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B171B
10.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B171B#FFFFFF#000000##FFFFFF
##7B171B1.0010.601.9810.60
#FFFFFF10.601.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7b171b;
/* rgb */ color: rgb(123, 23, 27);
/* oklch */ color: oklch(38.2% 0.134 24.6);
Tailwind
colors: {
  custom: {
    50: '#a95e57',
    500: '#7b171b',
    950: '#000000',
  },
}
SCSS
$custom: #7b171b;
$custom-light: #a95e57;
$custom-dark: #000000;
JSON
{
  "hex": "#7b171b",
  "rgb": {
    "r": 123,
    "g": 23,
    "b": 27
  },
  "hsl": {
    "h": 357.6,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.38234,
    "c": 0.13426,
    "h": 24.6
  },
  "luminance": 0.04903
}

Semantic roles & 50–950 ramp

primary
#7B171B
secondary
#3EB0AB
accent
#EBE43C
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110503
muted
#807978

Preview Lab

Preview with #7B171B

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

Preview Lab → · Contrast checker → · Palette generator →

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