#7E1712#7E1712

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

Color values

HEX#7E1712
RGBrgb(126, 23, 18)
HSLhsl(3, 75%, 28%)
HSVhsv(3, 86%, 49%)
CMYKcmyk(0%, 81.7%, 85.7%, 50.6%)
CIE-LABlab(27.00, 42.73, 31.16)
CIE-LCHlch(27.00, 52.89, 36.10°)
OKLaboklab(38.72% 0.1217 0.066)
OKLCHoklch(38.72% 0.138 28.5)
XYZxyz(9.0209, 5.0935, 1.0803)
Luminance0.0509 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1712 #12797E
analogous
#7E1243 #7E1712 #7E4D12
triadic
#7E1712 #127E17 #17127E
tetradic
#7E1712 #437E12 #12797E #4D127E
square
#7E1712 #437E12 #12797E #4D127E
split-complementary
#7E1712 #127E4D #12437E
monochromatic
#1B0504 #480D0A #7E1712 #B4211A #E1322A

Accessibility & contrast

On white

10.40
#7E1712 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#7E1712 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1712
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1712#FFFFFF#000000##FFFFFF
##7E17121.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1712;
/* rgb */ color: rgb(126, 23, 18);
/* oklch */ color: oklch(38.7% 0.138 28.5);
Tailwind
colors: {
  custom: {
    50: '#ac5f51',
    500: '#7e1712',
    950: '#000000',
  },
}
SCSS
$custom: #7e1712;
$custom-light: #ac5f51;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1712",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 18
  },
  "hsl": {
    "h": 2.778,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.38716,
    "c": 0.13847,
    "h": 28.5
  },
  "luminance": 0.05092
}

Semantic roles & 50–950 ramp

primary
#7E1712
secondary
#38AEB4
accent
#E9F236
background
#FBF5F4
surface
#F6EAE7
border
#D0C6C3
text
#120502
muted
#817978

Preview Lab

Preview with #7E1712

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

Preview Lab → · Contrast checker → · Palette generator →

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