#7E1312#7E1312

#7E1312 is a dark, vivid red. Relative luminance 0.049; OKLCH L 38.4% C 0.141 H 27.4°. Best body text is #FFFFFF at 10.56:1 contrast (WCAG AA passes).

Color values

HEX#7E1312
RGBrgb(126, 19, 18)
HSLhsl(1, 75%, 28%)
HSVhsv(1, 86%, 49%)
CMYKcmyk(0%, 84.9%, 85.7%, 50.6%)
CIE-LABlab(26.58, 43.91, 30.77)
CIE-LCHlch(26.58, 53.62, 35.02°)
OKLaboklab(38.41% 0.1254 0.0651)
OKLCHoklch(38.41% 0.141 27.4)
XYZxyz(8.9474, 4.9465, 1.0558)
Luminance0.0495 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1312 #127D7E
analogous
#7E1247 #7E1312 #7E4912
triadic
#7E1312 #127E13 #13127E
tetradic
#7E1312 #477E12 #127D7E #49127E
square
#7E1312 #477E12 #127D7E #49127E
split-complementary
#7E1312 #127E49 #12477E
monochromatic
#1B0404 #480B0A #7E1312 #B41B1A #E12C2A

Accessibility & contrast

On white

10.56
#7E1312 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#7E1312 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1312
10.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1312#FFFFFF#000000##FFFFFF
##7E13121.0010.561.9910.56
#FFFFFF10.561.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#363010
Deuteranopia (green-blind)
#50470C
Tritanopia (blue-blind)
#8C0015
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #7e1312;
/* rgb */ color: rgb(126, 19, 18);
/* oklch */ color: oklch(38.4% 0.141 27.4);
Tailwind
colors: {
  custom: {
    50: '#ac5d51',
    500: '#7e1312',
    950: '#000000',
  },
}
SCSS
$custom: #7e1312;
$custom-light: #ac5d51;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1312",
  "rgb": {
    "r": 126,
    "g": 19,
    "b": 18
  },
  "hsl": {
    "h": 0.556,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.38406,
    "c": 0.14132,
    "h": 27.4
  },
  "luminance": 0.04945
}

Semantic roles & 50–950 ramp

primary
#7E1312
secondary
#38B3B4
accent
#F0F236
background
#FBF5F4
surface
#F6E9E7
border
#D0C5C3
text
#120502
muted
#817978

Preview Lab

Preview with #7E1312

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

Preview Lab → · Contrast checker → · Palette generator →

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