#7E1812#7E1812

#7E1812 is a dark, vivid red. Relative luminance 0.051; OKLCH L 38.8% C 0.138 H 28.8°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#7E1812
RGBrgb(126, 24, 18)
HSLhsl(3, 75%, 28%)
HSVhsv(3, 86%, 49%)
CMYKcmyk(0%, 81%, 85.7%, 50.6%)
CIE-LABlab(27.11, 42.41, 31.27)
CIE-LCHlch(27.11, 52.69, 36.40°)
OKLaboklab(38.8% 0.1207 0.0663)
OKLCHoklch(38.8% 0.138 28.8)
XYZxyz(9.0411, 5.1340, 1.0871)
Luminance0.0513 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1812 #12787E
analogous
#7E1242 #7E1812 #7E4E12
triadic
#7E1812 #127E18 #18127E
tetradic
#7E1812 #427E12 #12787E #4E127E
square
#7E1812 #427E12 #12787E #4E127E
split-complementary
#7E1812 #127E4E #12427E
monochromatic
#1B0504 #480E0A #7E1812 #B4221A #E1342A

Accessibility & contrast

On white

10.36
#7E1812 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1812
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1812#FFFFFF#000000##FFFFFF
##7E18121.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383210
Deuteranopia (green-blind)
#51480C
Tritanopia (blue-blind)
#8B0018
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e1812;
/* rgb */ color: rgb(126, 24, 18);
/* oklch */ color: oklch(38.8% 0.138 28.8);
Tailwind
colors: {
  custom: {
    50: '#ac5f51',
    500: '#7e1812',
    950: '#000000',
  },
}
SCSS
$custom: #7e1812;
$custom-light: #ac5f51;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1812",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 18
  },
  "hsl": {
    "h": 3.333,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.38801,
    "c": 0.1377,
    "h": 28.8
  },
  "luminance": 0.05133
}

Semantic roles & 50–950 ramp

primary
#7E1812
secondary
#38ADB4
accent
#E7F236
background
#FBF5F4
surface
#F6EAE7
border
#D0C6C3
text
#120502
muted
#817978

Preview Lab

Preview with #7E1812

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

Preview Lab → · Contrast checker → · Palette generator →

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