#7E181E#7E181E

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

Color values

HEX#7E181E
RGBrgb(126, 24, 30)
HSLhsl(356, 68%, 29%)
HSVhsv(356, 81%, 49%)
CMYKcmyk(0%, 81%, 76.2%, 50.6%)
CIE-LABlab(27.25, 42.86, 24.14)
CIE-LCHlch(27.25, 49.19, 29.39°)
OKLaboklab(38.95% 0.1248 0.0546)
OKLCHoklch(38.95% 0.136 23.6)
XYZxyz(9.1662, 5.1841, 1.7460)
Luminance0.0518 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E181E #187E78
analogous
#7E1851 #7E181E #7E4518
triadic
#7E181E #1E7E18 #181E7E
tetradic
#7E181E #517E18 #187E78 #45187E
square
#7E181E #517E18 #187E78 #45187E
split-complementary
#7E181E #187E45 #18517E
monochromatic
#1A0506 #4B0E12 #7E181E #B1222A #D93741

Accessibility & contrast

On white

10.31
#7E181E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#7E181E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E181E
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E181E#FFFFFF#000000##FFFFFF
##7E181E1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37321D
Deuteranopia (green-blind)
#51481A
Tritanopia (blue-blind)
#8B001B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e181e;
/* rgb */ color: rgb(126, 24, 30);
/* oklch */ color: oklch(38.9% 0.136 23.6);
Tailwind
colors: {
  custom: {
    50: '#ab5f5a',
    500: '#7e181e',
    950: '#000000',
  },
}
SCSS
$custom: #7e181e;
$custom-light: #ab5f5a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e181e",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 30
  },
  "hsl": {
    "h": 356.471,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.38949,
    "c": 0.13622,
    "h": 23.6
  },
  "luminance": 0.05183
}

Semantic roles & 50–950 ramp

primary
#7E181E
secondary
#3FB2AC
accent
#EBE13D
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110503
muted
#807978

Preview Lab

Preview with #7E181E

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

Preview Lab → · Contrast checker → · Palette generator →

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