#7E1F12#7E1F12

#7E1F12 is a dark, vivid red. Relative luminance 0.055; OKLCH L 39.5% C 0.132 H 31.1°. Best body text is #FFFFFF at 10.04:1 contrast (WCAG AA passes).

Color values

HEX#7E1F12
RGBrgb(126, 31, 18)
HSLhsl(7, 75%, 28%)
HSVhsv(7, 86%, 49%)
CMYKcmyk(0%, 75.4%, 85.7%, 50.6%)
CIE-LABlab(28.01, 39.92, 32.10)
CIE-LCHlch(28.01, 51.23, 38.81°)
OKLaboklab(39.47% 0.1129 0.0681)
OKLCHoklch(39.47% 0.132 31.1)
XYZxyz(9.2045, 5.4607, 1.1415)
Luminance0.0546 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F12 #12717E
analogous
#7E123B #7E1F12 #7E5512
triadic
#7E1F12 #127E1F #1F127E
tetradic
#7E1F12 #3B7E12 #12717E #55127E
square
#7E1F12 #3B7E12 #12717E #55127E
split-complementary
#7E1F12 #127E55 #123B7E
monochromatic
#1B0704 #48120A #7E1F12 #B42C1A #E1402A

Accessibility & contrast

On white

10.04
#7E1F12 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#7E1F12 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F12
10.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F12#FFFFFF#000000##FFFFFF
##7E1F121.0010.042.0910.04
#FFFFFF10.041.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C350F
Deuteranopia (green-blind)
#534A0D
Tritanopia (blue-blind)
#8B001D
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7e1f12;
/* rgb */ color: rgb(126, 31, 18);
/* oklch */ color: oklch(39.5% 0.132 31.1);
Tailwind
colors: {
  custom: {
    50: '#ac6251',
    500: '#7e1f12',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f12;
$custom-light: #ac6251;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f12",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 18
  },
  "hsl": {
    "h": 7.222,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.39468,
    "c": 0.13188,
    "h": 31.1
  },
  "luminance": 0.05459
}

Semantic roles & 50–950 ramp

primary
#7E1F12
secondary
#38A5B4
accent
#DBF236
background
#FBF6F4
surface
#F6EBE7
border
#D0C6C3
text
#120502
muted
#817A78

Preview Lab

Preview with #7E1F12

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

Preview Lab → · Contrast checker → · Palette generator →

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