#7E162C#7E162C

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

Color values

HEX#7E162C
RGBrgb(126, 22, 44)
HSLhsl(347, 70%, 29%)
HSVhsv(347, 83%, 49%)
CMYKcmyk(0%, 82.5%, 65.1%, 50.6%)
CIE-LABlab(27.28, 44.25, 14.94)
CIE-LCHlch(27.28, 46.70, 18.66°)
OKLaboklab(39.05% 0.1325 0.0362)
OKLCHoklch(39.05% 0.137 15.3)
XYZxyz(9.3467, 5.1927, 2.8925)
Luminance0.0519 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E162C #167E68
analogous
#7E1660 #7E162C #7E3416
triadic
#7E162C #2C7E16 #162C7E
tetradic
#7E162C #607E16 #167E68 #34167E
square
#7E162C #607E16 #167E68 #34167E
split-complementary
#7E162C #167E34 #16607E
monochromatic
#1A0509 #4A0D1A #7E162C #B21F3E #DB3357

Accessibility & contrast

On white

10.30
#7E162C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E162C
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E162C#FFFFFF#000000##FFFFFF
##7E162C1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35332C
Deuteranopia (green-blind)
#4F4829
Tritanopia (blue-blind)
#8B0020
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e162c;
/* rgb */ color: rgb(126, 22, 44);
/* oklch */ color: oklch(39.0% 0.137 15.3);
Tailwind
colors: {
  custom: {
    50: '#aa5f64',
    500: '#7e162c',
    950: '#000000',
  },
}
SCSS
$custom: #7e162c;
$custom-light: #aa5f64;
$custom-dark: #000000;
JSON
{
  "hex": "#7e162c",
  "rgb": {
    "r": 126,
    "g": 22,
    "b": 44
  },
  "hsl": {
    "h": 347.308,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.39045,
    "c": 0.13738,
    "h": 15.3
  },
  "luminance": 0.05191
}

Semantic roles & 50–950 ramp

primary
#7E162C
secondary
#3DB39A
accent
#EDC73B
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110505
muted
#80797A

Preview Lab

Preview with #7E162C

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

Preview Lab → · Contrast checker → · Palette generator →

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