#7E1F2A#7E1F2A

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

Color values

HEX#7E1F2A
RGBrgb(126, 31, 42)
HSLhsl(353, 61%, 31%)
HSVhsv(353, 75%, 49%)
CMYKcmyk(0%, 75.4%, 66.7%, 50.6%)
CIE-LABlab(28.34, 41.03, 17.64)
CIE-LCHlch(28.34, 44.67, 23.27°)
OKLaboklab(39.82% 0.1218 0.0422)
OKLCHoklch(39.82% 0.129 19.1)
XYZxyz(9.5131, 5.5842, 2.7670)
Luminance0.0558 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F2A #1F7E73
analogous
#7E1F59 #7E1F2A #7E431F
triadic
#7E1F2A #2A7E1F #1F2A7E
tetradic
#7E1F2A #597E1F #1F7E73 #431F7E
square
#7E1F2A #597E1F #1F7E73 #431F7E
split-complementary
#7E1F2A #1F7E43 #1F597E
monochromatic
#1C0709 #4D131A #7E1F2A #AF2B3A #D14656

Accessibility & contrast

On white

9.92
#7E1F2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1F2A
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F2A#FFFFFF#000000##FFFFFF
##7E1F2A1.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#39362A
Deuteranopia (green-blind)
#514A27
Tritanopia (blue-blind)
#8B0024
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e1f2a;
/* rgb */ color: rgb(126, 31, 42);
/* oklch */ color: oklch(39.8% 0.129 19.1);
Tailwind
colors: {
  custom: {
    50: '#aa6363',
    500: '#7e1f2a',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f2a;
$custom-light: #aa6363;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f2a",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 42
  },
  "hsl": {
    "h": 353.053,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.39819,
    "c": 0.12888,
    "h": 19.1
  },
  "luminance": 0.05583
}

Semantic roles & 50–950 ramp

primary
#7E1F2A
secondary
#48B1A5
accent
#E4D144
background
#FBF6F5
surface
#F6EBEA
border
#D0C6C6
text
#110605
muted
#807A79

Preview Lab

Preview with #7E1F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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