#7E1C2A#7E1C2A

#7E1C2A is a dark, vivid red. Relative luminance 0.054; OKLCH L 39.5% C 0.132 H 18.1°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).

Color values

HEX#7E1C2A
RGBrgb(126, 28, 42)
HSLhsl(351, 64%, 30%)
HSVhsv(351, 78%, 49%)
CMYKcmyk(0%, 77.8%, 66.7%, 50.6%)
CIE-LABlab(27.94, 42.15, 17.13)
CIE-LCHlch(27.94, 45.50, 22.12°)
OKLaboklab(39.52% 0.1253 0.041)
OKLCHoklch(39.52% 0.132 18.1)
XYZxyz(9.4384, 5.4347, 2.7421)
Luminance0.0543 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1C2A #1C7E70
analogous
#7E1C5B #7E1C2A #7E3F1C
triadic
#7E1C2A #2A7E1C #1C2A7E
tetradic
#7E1C2A #5B7E1C #1C7E70 #3F1C7E
square
#7E1C2A #5B7E1C #1C7E70 #3F1C7E
split-complementary
#7E1C2A #1C7E3F #1C5B7E
monochromatic
#1A0609 #4C1119 #7E1C2A #B0273B #D54055

Accessibility & contrast

On white

10.06
#7E1C2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#7E1C2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1C2A
10.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1C2A#FFFFFF#000000##FFFFFF
##7E1C2A1.0010.062.0910.06
#FFFFFF10.061.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38352A
Deuteranopia (green-blind)
#514927
Tritanopia (blue-blind)
#8B0022
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7e1c2a;
/* rgb */ color: rgb(126, 28, 42);
/* oklch */ color: oklch(39.5% 0.132 18.1);
Tailwind
colors: {
  custom: {
    50: '#aa6163',
    500: '#7e1c2a',
    950: '#000000',
  },
}
SCSS
$custom: #7e1c2a;
$custom-light: #aa6163;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1c2a",
  "rgb": {
    "r": 126,
    "g": 28,
    "b": 42
  },
  "hsl": {
    "h": 351.429,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.39523,
    "c": 0.13188,
    "h": 18.1
  },
  "luminance": 0.05433
}

Semantic roles & 50–950 ramp

primary
#7E1C2A
secondary
#44B2A2
accent
#E7CF41
background
#FBF6F5
surface
#F6EBEA
border
#D0C6C6
text
#110505
muted
#807A79

Preview Lab

Preview with #7E1C2A

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

Preview Lab → · Contrast checker → · Palette generator →

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