#7E1F2F#7E1F2F

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

Color values

HEX#7E1F2F
RGBrgb(126, 31, 47)
HSLhsl(350, 61%, 31%)
HSVhsv(350, 75%, 49%)
CMYKcmyk(0%, 75.4%, 62.7%, 50.6%)
CIE-LABlab(28.44, 41.37, 14.46)
CIE-LCHlch(28.44, 43.83, 19.27°)
OKLaboklab(39.93% 0.1239 0.0353)
OKLCHoklch(39.93% 0.129 15.9)
XYZxyz(9.6082, 5.6222, 3.2680)
Luminance0.0562 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F2F #1F7E6E
analogous
#7E1F5E #7E1F2F #7E3E1F
triadic
#7E1F2F #2F7E1F #1F2F7E
tetradic
#7E1F2F #5E7E1F #1F7E6E #3E1F7E
square
#7E1F2F #5E7E1F #1F7E6E #3E1F7E
split-complementary
#7E1F2F #1F7E3E #1F5E7E
monochromatic
#1C070A #4D131D #7E1F2F #AF2B41 #D1465D

Accessibility & contrast

On white

9.89
#7E1F2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#7E1F2F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F2F
9.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F2F#FFFFFF#000000##FFFFFF
##7E1F2F1.009.892.129.89
#FFFFFF9.891.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39362F
Deuteranopia (green-blind)
#514A2C
Tritanopia (blue-blind)
#8A0226
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e1f2f;
/* rgb */ color: rgb(126, 31, 47);
/* oklch */ color: oklch(39.9% 0.129 15.9);
Tailwind
colors: {
  custom: {
    50: '#a96367',
    500: '#7e1f2f',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f2f;
$custom-light: #a96367;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f2f",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 47
  },
  "hsl": {
    "h": 349.895,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.39926,
    "c": 0.12884,
    "h": 15.9
  },
  "luminance": 0.05621
}

Semantic roles & 50–950 ramp

primary
#7E1F2F
secondary
#48B19F
accent
#E4C944
background
#FBF6F6
surface
#F6EBEB
border
#D0C6C6
text
#110606
muted
#807A7A

Preview Lab

Preview with #7E1F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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