#7E181C#7E181C

#7E181C is a dark, vivid red. Relative luminance 0.052; OKLCH L 38.9% C 0.136 H 24.6°. Best body text is #FFFFFF at 10.32:1 contrast (WCAG AA passes).

Color values

HEX#7E181C
RGBrgb(126, 24, 28)
HSLhsl(358, 68%, 29%)
HSVhsv(358, 81%, 49%)
CMYKcmyk(0%, 81%, 77.8%, 50.6%)
CIE-LABlab(27.23, 42.77, 25.38)
CIE-LCHlch(27.23, 49.73, 30.68°)
OKLaboklab(38.92% 0.1241 0.0568)
OKLCHoklch(38.92% 0.136 24.6)
XYZxyz(9.1415, 5.1742, 1.6158)
Luminance0.0517 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E181C #187E7A
analogous
#7E184F #7E181C #7E4718
triadic
#7E181C #1C7E18 #181C7E
tetradic
#7E181C #4F7E18 #187E7A #47187E
square
#7E181C #4F7E18 #187E7A #47187E
split-complementary
#7E181C #187E47 #184F7E
monochromatic
#1A0506 #4B0E11 #7E181C #B12227 #D9373E

Accessibility & contrast

On white

10.32
#7E181C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#7E181C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E181C
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E181C#FFFFFF#000000##FFFFFF
##7E181C1.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38321B
Deuteranopia (green-blind)
#514818
Tritanopia (blue-blind)
#8B001B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e181c;
/* rgb */ color: rgb(126, 24, 28);
/* oklch */ color: oklch(38.9% 0.136 24.6);
Tailwind
colors: {
  custom: {
    50: '#ab5f58',
    500: '#7e181c',
    950: '#000000',
  },
}
SCSS
$custom: #7e181c;
$custom-light: #ab5f58;
$custom-dark: #000000;
JSON
{
  "hex": "#7e181c",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 28
  },
  "hsl": {
    "h": 357.647,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.38919,
    "c": 0.13644,
    "h": 24.6
  },
  "luminance": 0.05173
}

Semantic roles & 50–950 ramp

primary
#7E181C
secondary
#3FB2AE
accent
#EBE43D
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#120503
muted
#817978

Preview Lab

Preview with #7E181C

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

Preview Lab → · Contrast checker → · Palette generator →

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