#7E162B#7E162B

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

Color values

HEX#7E162B
RGBrgb(126, 22, 43)
HSLhsl(348, 70%, 29%)
HSVhsv(348, 83%, 49%)
CMYKcmyk(0%, 82.5%, 65.9%, 50.6%)
CIE-LABlab(27.26, 44.18, 15.58)
CIE-LCHlch(27.26, 46.85, 19.43°)
OKLaboklab(39.02% 0.1321 0.0376)
OKLCHoklch(39.02% 0.137 15.9)
XYZxyz(9.3281, 5.1853, 2.7947)
Luminance0.0518 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E162B #167E69
analogous
#7E165F #7E162B #7E3516
triadic
#7E162B #2B7E16 #162B7E
tetradic
#7E162B #5F7E16 #167E69 #35167E
square
#7E162B #5F7E16 #167E69 #35167E
split-complementary
#7E162B #167E35 #165F7E
monochromatic
#1A0509 #4A0D19 #7E162B #B21F3D #DB3355

Accessibility & contrast

On white

10.31
#7E162B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E162B
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E162B#FFFFFF#000000##FFFFFF
##7E162B1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35332B
Deuteranopia (green-blind)
#4F4828
Tritanopia (blue-blind)
#8B001F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e162b;
/* rgb */ color: rgb(126, 22, 43);
/* oklch */ color: oklch(39.0% 0.137 15.9);
Tailwind
colors: {
  custom: {
    50: '#aa5f64',
    500: '#7e162b',
    950: '#000000',
  },
}
SCSS
$custom: #7e162b;
$custom-light: #aa5f64;
$custom-dark: #000000;
JSON
{
  "hex": "#7e162b",
  "rgb": {
    "r": 126,
    "g": 22,
    "b": 43
  },
  "hsl": {
    "h": 347.885,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.39023,
    "c": 0.13735,
    "h": 15.9
  },
  "luminance": 0.05184
}

Semantic roles & 50–950 ramp

primary
#7E162B
secondary
#3DB39B
accent
#EDC93B
background
#FBF5F5
surface
#F6EAEA
border
#D0C6C6
text
#110505
muted
#807979

Preview Lab

Preview with #7E162B

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

Preview Lab → · Contrast checker → · Palette generator →

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