#7B171E#7B171E

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

Color values

HEX#7B171E
RGBrgb(123, 23, 30)
HSLhsl(356, 68%, 29%)
HSVhsv(356, 81%, 48%)
CMYKcmyk(0%, 81.3%, 75.6%, 51.8%)
CIE-LABlab(26.50, 42.22, 23.11)
CIE-LCHlch(26.50, 48.13, 28.69°)
OKLaboklab(38.28% 0.1232 0.0525)
OKLCHoklch(38.28% 0.134 23.1)
XYZxyz(8.7101, 4.9189, 1.7189)
Luminance0.0492 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B171E #177B74
analogous
#7B1750 #7B171E #7B4217
triadic
#7B171E #1E7B17 #171E7B
tetradic
#7B171E #507B17 #177B74 #42177B
square
#7B171E #507B17 #177B74 #42177B
split-complementary
#7B171E #177B42 #17507B
monochromatic
#1A0506 #470D11 #7B171E #AF212B #D9333F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B171E#FFFFFF#000000##FFFFFF
##7B171E1.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)
#36311D
Deuteranopia (green-blind)
#4E461A
Tritanopia (blue-blind)
#88001B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #7b171e;
/* rgb */ color: rgb(123, 23, 30);
/* oklch */ color: oklch(38.3% 0.134 23.1);
Tailwind
colors: {
  custom: {
    50: '#a95f59',
    500: '#7b171e',
    950: '#000000',
  },
}
SCSS
$custom: #7b171e;
$custom-light: #a95f59;
$custom-dark: #000000;
JSON
{
  "hex": "#7b171e",
  "rgb": {
    "r": 123,
    "g": 23,
    "b": 30
  },
  "hsl": {
    "h": 355.8,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.38278,
    "c": 0.13395,
    "h": 23.1
  },
  "luminance": 0.04917
}

Semantic roles & 50–950 ramp

primary
#7B171E
secondary
#3EB0A8
accent
#EBDF3C
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110503
muted
#807978

Preview Lab

Preview with #7B171E

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

Preview Lab → · Contrast checker → · Palette generator →

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