#7E1E1F#7E1E1F

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

Color values

HEX#7E1E1F
RGBrgb(126, 30, 31)
HSLhsl(359, 62%, 31%)
HSVhsv(359, 76%, 49%)
CMYKcmyk(0%, 76.2%, 75.4%, 50.6%)
CIE-LABlab(28.02, 40.80, 24.38)
CIE-LCHlch(28.02, 47.53, 30.86°)
OKLaboklab(39.52% 0.1185 0.0553)
OKLCHoklch(39.52% 0.131 25)
XYZxyz(9.3168, 5.4645, 1.8602)
Luminance0.0546 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1E1F #1E7E7D
analogous
#7E1E4F #7E1E1F #7E4D1E
triadic
#7E1E1F #1F7E1E #1E1F7E
tetradic
#7E1E1F #4F7E1E #1E7E7D #4D1E7E
square
#7E1E1F #4F7E1E #1E7E7D #4D1E7E
split-complementary
#7E1E1F #1E7E4D #1E4F7E
monochromatic
#1B0607 #4D1213 #7E1E1F #AF2A2B #D24445

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E1E1F#FFFFFF#000000##FFFFFF
##7E1E1F1.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)
#3A351E
Deuteranopia (green-blind)
#524A1C
Tritanopia (blue-blind)
#8B0020
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7e1e1f;
/* rgb */ color: rgb(126, 30, 31);
/* oklch */ color: oklch(39.5% 0.131 25.0);
Tailwind
colors: {
  custom: {
    50: '#ab625a',
    500: '#7e1e1f',
    950: '#000000',
  },
}
SCSS
$custom: #7e1e1f;
$custom-light: #ab625a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1e1f",
  "rgb": {
    "r": 126,
    "g": 30,
    "b": 31
  },
  "hsl": {
    "h": 359.375,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.39523,
    "c": 0.13082,
    "h": 25
  },
  "luminance": 0.05463
}

Semantic roles & 50–950 ramp

primary
#7E1E1F
secondary
#47B1B0
accent
#E5E343
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110504
muted
#807A79

Preview Lab

Preview with #7E1E1F

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

Preview Lab → · Contrast checker → · Palette generator →

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