#7E1F22#7E1F22

#7E1F22 is a dark, vivid red. Relative luminance 0.055; OKLCH L 39.7% C 0.130 H 23.8°. Best body text is #FFFFFF at 9.97:1 contrast (WCAG AA passes).

Color values

HEX#7E1F22
RGBrgb(126, 31, 34)
HSLhsl(358, 61%, 31%)
HSVhsv(358, 75%, 49%)
CMYKcmyk(0%, 75.4%, 73%, 50.6%)
CIE-LABlab(28.20, 40.57, 22.69)
CIE-LCHlch(28.20, 46.48, 29.21°)
OKLaboklab(39.67% 0.1185 0.0522)
OKLCHoklch(39.67% 0.13 23.8)
XYZxyz(9.3839, 5.5325, 2.0868)
Luminance0.0553 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F22 #1F7E7B
analogous
#7E1F51 #7E1F22 #7E4B1F
triadic
#7E1F22 #227E1F #1F227E
tetradic
#7E1F22 #517E1F #1F7E7B #4B1F7E
square
#7E1F22 #517E1F #1F7E7B #4B1F7E
split-complementary
#7E1F22 #1F7E4B #1F517E
monochromatic
#1C0707 #4D1315 #7E1F22 #AF2B2F #D1464A

Accessibility & contrast

On white

9.97
#7E1F22 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#7E1F22 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F22
9.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F22#FFFFFF#000000##FFFFFF
##7E1F221.009.972.119.97
#FFFFFF9.971.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A3621
Deuteranopia (green-blind)
#524A1F
Tritanopia (blue-blind)
#8B0021
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e1f22;
/* rgb */ color: rgb(126, 31, 34);
/* oklch */ color: oklch(39.7% 0.130 23.8);
Tailwind
colors: {
  custom: {
    50: '#aa625d',
    500: '#7e1f22',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f22;
$custom-light: #aa625d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f22",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 34
  },
  "hsl": {
    "h": 358.105,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.39673,
    "c": 0.1295,
    "h": 23.8
  },
  "luminance": 0.05531
}

Semantic roles & 50–950 ramp

primary
#7E1F22
secondary
#48B1AE
accent
#E4DF44
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110604
muted
#807A79

Preview Lab

Preview with #7E1F22

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

Preview Lab → · Contrast checker → · Palette generator →

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