#7E1F2B#7E1F2B

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

Color values

HEX#7E1F2B
RGBrgb(126, 31, 43)
HSLhsl(352, 61%, 31%)
HSVhsv(352, 75%, 49%)
CMYKcmyk(0%, 75.4%, 65.9%, 50.6%)
CIE-LABlab(28.36, 41.10, 17.01)
CIE-LCHlch(28.36, 44.48, 22.48°)
OKLaboklab(39.84% 0.1222 0.0408)
OKLCHoklch(39.84% 0.129 18.5)
XYZxyz(9.5312, 5.5914, 2.8624)
Luminance0.0559 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F2B #1F7E72
analogous
#7E1F5A #7E1F2B #7E421F
triadic
#7E1F2B #2B7E1F #1F2B7E
tetradic
#7E1F2B #5A7E1F #1F7E72 #421F7E
square
#7E1F2B #5A7E1F #1F7E72 #421F7E
split-complementary
#7E1F2B #1F7E42 #1F5A7E
monochromatic
#1C0709 #4D131A #7E1F2B #AF2B3C #D14658

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E1F2B#FFFFFF#000000##FFFFFF
##7E1F2B1.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)
#39362B
Deuteranopia (green-blind)
#514A28
Tritanopia (blue-blind)
#8B0024
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e1f2b;
/* rgb */ color: rgb(126, 31, 43);
/* oklch */ color: oklch(39.8% 0.129 18.5);
Tailwind
colors: {
  custom: {
    50: '#aa6364',
    500: '#7e1f2b',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f2b;
$custom-light: #aa6364;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f2b",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 43
  },
  "hsl": {
    "h": 352.421,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3984,
    "c": 0.12885,
    "h": 18.5
  },
  "luminance": 0.0559
}

Semantic roles & 50–950 ramp

primary
#7E1F2B
secondary
#48B1A4
accent
#E4CF44
background
#FBF6F5
surface
#F6EBEA
border
#D0C6C6
text
#110605
muted
#807A79

Preview Lab

Preview with #7E1F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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