#7E162A#7E162A

#7E162A is a dark, vivid red. Relative luminance 0.052; OKLCH L 39.0% C 0.137 H 16.5°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#7E162A
RGBrgb(126, 22, 42)
HSLhsl(348, 70%, 29%)
HSVhsv(348, 83%, 49%)
CMYKcmyk(0%, 82.5%, 66.7%, 50.6%)
CIE-LABlab(27.24, 44.12, 16.23)
CIE-LCHlch(27.24, 47.01, 20.19°)
OKLaboklab(39% 0.1317 0.0389)
OKLCHoklch(39% 0.137 16.5)
XYZxyz(9.3100, 5.1780, 2.6993)
Luminance0.0518 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E162A #167E6A
analogous
#7E165E #7E162A #7E3616
triadic
#7E162A #2A7E16 #162A7E
tetradic
#7E162A #5E7E16 #167E6A #36167E
square
#7E162A #5E7E16 #167E6A #36167E
split-complementary
#7E162A #167E36 #165E7E
monochromatic
#1A0509 #4A0D19 #7E162A #B21F3B #DB3353

Accessibility & contrast

On white

10.32
#7E162A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#7E162A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E162A
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E162A#FFFFFF#000000##FFFFFF
##7E162A1.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35322A
Deuteranopia (green-blind)
#4F4827
Tritanopia (blue-blind)
#8B001F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e162a;
/* rgb */ color: rgb(126, 22, 42);
/* oklch */ color: oklch(39.0% 0.137 16.5);
Tailwind
colors: {
  custom: {
    50: '#aa5f63',
    500: '#7e162a',
    950: '#000000',
  },
}
SCSS
$custom: #7e162a;
$custom-light: #aa5f63;
$custom-dark: #000000;
JSON
{
  "hex": "#7e162a",
  "rgb": {
    "r": 126,
    "g": 22,
    "b": 42
  },
  "hsl": {
    "h": 348.462,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.39002,
    "c": 0.13733,
    "h": 16.5
  },
  "luminance": 0.05177
}

Semantic roles & 50–950 ramp

primary
#7E162A
secondary
#3DB39C
accent
#EDCB3B
background
#FBF5F5
surface
#F6EAEA
border
#D0C6C6
text
#110505
muted
#807979

Preview Lab

Preview with #7E162A

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

Preview Lab → · Contrast checker → · Palette generator →

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