#7B171C#7B171C

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

Color values

HEX#7B171C
RGBrgb(123, 23, 28)
HSLhsl(357, 68%, 29%)
HSVhsv(357, 81%, 48%)
CMYKcmyk(0%, 81.3%, 77.2%, 51.8%)
CIE-LABlab(26.47, 42.13, 24.36)
CIE-LCHlch(26.47, 48.67, 30.04°)
OKLaboklab(38.25% 0.1225 0.0548)
OKLCHoklch(38.25% 0.134 24.1)
XYZxyz(8.6854, 4.9090, 1.5886)
Luminance0.0491 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B171C #177B76
analogous
#7B174E #7B171C #7B4417
triadic
#7B171C #1C7B17 #171C7B
tetradic
#7B171C #4E7B17 #177B76 #44177B
square
#7B171C #4E7B17 #177B76 #44177B
split-complementary
#7B171C #177B44 #174E7B
monochromatic
#1A0506 #470D10 #7B171C #AF2128 #D9333C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B171C#FFFFFF#000000##FFFFFF
##7B171C1.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)
#36311B
Deuteranopia (green-blind)
#4F4618
Tritanopia (blue-blind)
#88001A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #7b171c;
/* rgb */ color: rgb(123, 23, 28);
/* oklch */ color: oklch(38.2% 0.134 24.1);
Tailwind
colors: {
  custom: {
    50: '#a95e58',
    500: '#7b171c',
    950: '#000000',
  },
}
SCSS
$custom: #7b171c;
$custom-light: #a95e58;
$custom-dark: #000000;
JSON
{
  "hex": "#7b171c",
  "rgb": {
    "r": 123,
    "g": 23,
    "b": 28
  },
  "hsl": {
    "h": 357,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.38248,
    "c": 0.13415,
    "h": 24.1
  },
  "luminance": 0.04908
}

Semantic roles & 50–950 ramp

primary
#7B171C
secondary
#3EB0AA
accent
#EBE33C
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110503
muted
#807978

Preview Lab

Preview with #7B171C

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

Preview Lab → · Contrast checker → · Palette generator →

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