#7E161B#7E161B

#7E161B is a dark, vivid red. Relative luminance 0.051; OKLCH L 38.7% C 0.138 H 24.5°. Best body text is #FFFFFF at 10.41:1 contrast (WCAG AA passes).

Color values

HEX#7E161B
RGBrgb(126, 22, 27)
HSLhsl(357, 70%, 29%)
HSVhsv(357, 83%, 49%)
CMYKcmyk(0%, 82.5%, 78.6%, 50.6%)
CIE-LABlab(26.99, 43.35, 25.75)
CIE-LCHlch(26.99, 50.42, 30.71°)
OKLaboklab(38.74% 0.1257 0.0573)
OKLCHoklch(38.74% 0.138 24.5)
XYZxyz(9.0900, 5.0900, 1.5405)
Luminance0.0509 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E161B #167E79
analogous
#7E164F #7E161B #7E4516
triadic
#7E161B #1B7E16 #161B7E
tetradic
#7E161B #4F7E16 #167E79 #45167E
square
#7E161B #4F7E16 #167E79 #45167E
split-complementary
#7E161B #167E45 #164F7E
monochromatic
#1A0506 #4A0D10 #7E161B #B21F26 #DB333B

Accessibility & contrast

On white

10.41
#7E161B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#7E161B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E161B
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E161B#FFFFFF#000000##FFFFFF
##7E161B1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37311A
Deuteranopia (green-blind)
#504817
Tritanopia (blue-blind)
#8B0019
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e161b;
/* rgb */ color: rgb(126, 22, 27);
/* oklch */ color: oklch(38.7% 0.138 24.5);
Tailwind
colors: {
  custom: {
    50: '#ab5f57',
    500: '#7e161b',
    950: '#000000',
  },
}
SCSS
$custom: #7e161b;
$custom-light: #ab5f57;
$custom-dark: #000000;
JSON
{
  "hex": "#7e161b",
  "rgb": {
    "r": 126,
    "g": 22,
    "b": 27
  },
  "hsl": {
    "h": 357.115,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3874,
    "c": 0.13813,
    "h": 24.5
  },
  "luminance": 0.05089
}

Semantic roles & 50–950 ramp

primary
#7E161B
secondary
#3DB3AD
accent
#EDE43B
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#120503
muted
#817978

Preview Lab

Preview with #7E161B

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

Preview Lab → · Contrast checker → · Palette generator →

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