#7E181F#7E181F

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

Color values

HEX#7E181F
RGBrgb(126, 24, 31)
HSLhsl(356, 68%, 29%)
HSVhsv(356, 81%, 49%)
CMYKcmyk(0%, 81%, 75.4%, 50.6%)
CIE-LABlab(27.27, 42.90, 23.51)
CIE-LCHlch(27.27, 48.92, 28.73°)
OKLaboklab(38.96% 0.1252 0.0534)
OKLCHoklch(38.96% 0.136 23.1)
XYZxyz(9.1792, 5.1893, 1.8144)
Luminance0.0519 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E181F #187E77
analogous
#7E1852 #7E181F #7E4418
triadic
#7E181F #1F7E18 #181F7E
tetradic
#7E181F #527E18 #187E77 #44187E
square
#7E181F #527E18 #187E77 #44187E
split-complementary
#7E181F #187E44 #18527E
monochromatic
#1A0506 #4B0E12 #7E181F #B1222C #D93743

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E181F#FFFFFF#000000##FFFFFF
##7E181F1.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)
#37321E
Deuteranopia (green-blind)
#51481B
Tritanopia (blue-blind)
#8B001C
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e181f;
/* rgb */ color: rgb(126, 24, 31);
/* oklch */ color: oklch(39.0% 0.136 23.1);
Tailwind
colors: {
  custom: {
    50: '#ab5f5a',
    500: '#7e181f',
    950: '#000000',
  },
}
SCSS
$custom: #7e181f;
$custom-light: #ab5f5a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e181f",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 31
  },
  "hsl": {
    "h": 355.882,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.38964,
    "c": 0.13613,
    "h": 23.1
  },
  "luminance": 0.05188
}

Semantic roles & 50–950 ramp

primary
#7E181F
secondary
#3FB2AB
accent
#EBDF3D
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110504
muted
#807979

Preview Lab

Preview with #7E181F

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

Preview Lab → · Contrast checker → · Palette generator →

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