#7E1A12#7E1A12

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

Color values

HEX#7E1A12
RGBrgb(126, 26, 18)
HSLhsl(4, 75%, 28%)
HSVhsv(4, 86%, 49%)
CMYKcmyk(0%, 79.4%, 85.7%, 50.6%)
CIE-LABlab(27.35, 41.74, 31.49)
CIE-LCHlch(27.35, 52.29, 37.03°)
OKLaboklab(38.98% 0.1186 0.0667)
OKLCHoklch(38.98% 0.136 29.4)
XYZxyz(9.0839, 5.2195, 1.1013)
Luminance0.0522 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1A12 #12767E
analogous
#7E1240 #7E1A12 #7E5012
triadic
#7E1A12 #127E1A #1A127E
tetradic
#7E1A12 #407E12 #12767E #50127E
square
#7E1A12 #407E12 #12767E #50127E
split-complementary
#7E1A12 #127E50 #12407E
monochromatic
#1B0604 #480F0A #7E1A12 #B4251A #E1372A

Accessibility & contrast

On white

10.28
#7E1A12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1A12
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1A12#FFFFFF#000000##FFFFFF
##7E1A121.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#393310
Deuteranopia (green-blind)
#52480C
Tritanopia (blue-blind)
#8B0019
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7e1a12;
/* rgb */ color: rgb(126, 26, 18);
/* oklch */ color: oklch(39.0% 0.136 29.4);
Tailwind
colors: {
  custom: {
    50: '#ac6051',
    500: '#7e1a12',
    950: '#000000',
  },
}
SCSS
$custom: #7e1a12;
$custom-light: #ac6051;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1a12",
  "rgb": {
    "r": 126,
    "g": 26,
    "b": 18
  },
  "hsl": {
    "h": 4.444,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.38978,
    "c": 0.13612,
    "h": 29.4
  },
  "luminance": 0.05218
}

Semantic roles & 50–950 ramp

primary
#7E1A12
secondary
#38ABB4
accent
#E4F236
background
#FBF5F4
surface
#F6EAE7
border
#D0C6C3
text
#120502
muted
#817978

Preview Lab

Preview with #7E1A12

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

Preview Lab → · Contrast checker → · Palette generator →

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