#7E181B#7E181B

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

Color values

HEX#7E181B
RGBrgb(126, 24, 27)
HSLhsl(358, 68%, 29%)
HSVhsv(358, 81%, 49%)
CMYKcmyk(0%, 81%, 78.6%, 50.6%)
CIE-LABlab(27.21, 42.73, 25.99)
CIE-LCHlch(27.21, 50.01, 31.31°)
OKLaboklab(38.91% 0.1237 0.0578)
OKLCHoklch(38.91% 0.137 25.1)
XYZxyz(9.1297, 5.1695, 1.5538)
Luminance0.0517 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E181B #187E7B
analogous
#7E184E #7E181B #7E4818
triadic
#7E181B #1B7E18 #181B7E
tetradic
#7E181B #4E7E18 #187E7B #48187E
square
#7E181B #4E7E18 #187E7B #48187E
split-complementary
#7E181B #187E48 #184E7E
monochromatic
#1A0506 #4B0E10 #7E181B #B12226 #D9373C

Accessibility & contrast

On white

10.33
#7E181B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#7E181B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E181B
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E181B#FFFFFF#000000##FFFFFF
##7E181B1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38321A
Deuteranopia (green-blind)
#514817
Tritanopia (blue-blind)
#8B001A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e181b;
/* rgb */ color: rgb(126, 24, 27);
/* oklch */ color: oklch(38.9% 0.137 25.1);
Tailwind
colors: {
  custom: {
    50: '#ab5f57',
    500: '#7e181b',
    950: '#000000',
  },
}
SCSS
$custom: #7e181b;
$custom-light: #ab5f57;
$custom-dark: #000000;
JSON
{
  "hex": "#7e181b",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 27
  },
  "hsl": {
    "h": 358.235,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.38906,
    "c": 0.13655,
    "h": 25.1
  },
  "luminance": 0.05168
}

Semantic roles & 50–950 ramp

primary
#7E181B
secondary
#3FB2AF
accent
#EBE63D
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#120503
muted
#817978

Preview Lab

Preview with #7E181B

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

Preview Lab → · Contrast checker → · Palette generator →

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