#7E1F26#7E1F26

#7E1F26 is a dark, vivid red. Relative luminance 0.056; OKLCH L 39.7% C 0.129 H 21.5°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#7E1F26
RGBrgb(126, 31, 38)
HSLhsl(356, 61%, 31%)
HSVhsv(356, 75%, 49%)
CMYKcmyk(0%, 75.4%, 69.8%, 50.6%)
CIE-LABlab(28.27, 40.79, 20.18)
CIE-LCHlch(28.27, 45.51, 26.32°)
OKLaboklab(39.74% 0.1201 0.0474)
OKLCHoklch(39.74% 0.129 21.5)
XYZxyz(9.4450, 5.5569, 2.4086)
Luminance0.0556 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F26 #1F7E77
analogous
#7E1F55 #7E1F26 #7E471F
triadic
#7E1F26 #267E1F #1F267E
tetradic
#7E1F26 #557E1F #1F7E77 #471F7E
square
#7E1F26 #557E1F #1F7E77 #471F7E
split-complementary
#7E1F26 #1F7E47 #1F557E
monochromatic
#1C0708 #4D1317 #7E1F26 #AF2B35 #D14650

Accessibility & contrast

On white

9.95
#7E1F26 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1F26
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F26#FFFFFF#000000##FFFFFF
##7E1F261.009.952.119.95
#FFFFFF9.951.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3A3625
Deuteranopia (green-blind)
#524A23
Tritanopia (blue-blind)
#8B0022
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e1f26;
/* rgb */ color: rgb(126, 31, 38);
/* oklch */ color: oklch(39.7% 0.129 21.5);
Tailwind
colors: {
  custom: {
    50: '#aa6360',
    500: '#7e1f26',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f26;
$custom-light: #aa6360;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f26",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 38
  },
  "hsl": {
    "h": 355.579,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.39742,
    "c": 0.12912,
    "h": 21.5
  },
  "luminance": 0.05556
}

Semantic roles & 50–950 ramp

primary
#7E1F26
secondary
#48B1A9
accent
#E4D844
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110604
muted
#807A79

Preview Lab

Preview with #7E1F26

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

Preview Lab → · Contrast checker → · Palette generator →

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