#7E151F#7E151F

#7E151F is a dark, vivid red. Relative luminance 0.051; OKLCH L 38.7% C 0.139 H 22.3°. Best body text is #FFFFFF at 10.43:1 contrast (WCAG AA passes).

Color values

HEX#7E151F
RGBrgb(126, 21, 31)
HSLhsl(354, 71%, 29%)
HSVhsv(354, 83%, 49%)
CMYKcmyk(0%, 83.3%, 75.4%, 50.6%)
CIE-LABlab(26.94, 43.83, 23.13)
CIE-LCHlch(26.94, 49.56, 27.83°)
OKLaboklab(38.72% 0.1281 0.0526)
OKLCHoklch(38.72% 0.139 22.3)
XYZxyz(9.1207, 5.0723, 1.7949)
Luminance0.0507 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E151F #157E74
analogous
#7E1554 #7E151F #7E4015
triadic
#7E151F #1F7E15 #151F7E
tetradic
#7E151F #547E15 #157E74 #40157E
square
#7E151F #547E15 #157E74 #40157E
split-complementary
#7E151F #157E40 #15547E
monochromatic
#1A0406 #4A0C12 #7E151F #B21E2C #DD3141

Accessibility & contrast

On white

10.43
#7E151F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#7E151F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E151F
10.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E151F#FFFFFF#000000##FFFFFF
##7E151F1.0010.432.0110.43
#FFFFFF10.431.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36311E
Deuteranopia (green-blind)
#50481B
Tritanopia (blue-blind)
#8B001A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e151f;
/* rgb */ color: rgb(126, 21, 31);
/* oklch */ color: oklch(38.7% 0.139 22.3);
Tailwind
colors: {
  custom: {
    50: '#ab5e5a',
    500: '#7e151f',
    950: '#000000',
  },
}
SCSS
$custom: #7e151f;
$custom-light: #ab5e5a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e151f",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 31
  },
  "hsl": {
    "h": 354.286,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.38721,
    "c": 0.13852,
    "h": 22.3
  },
  "luminance": 0.05071
}

Semantic roles & 50–950 ramp

primary
#7E151F
secondary
#3CB3A8
accent
#EEDD3A
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110504
muted
#807979

Preview Lab

Preview with #7E151F

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

Preview Lab → · Contrast checker → · Palette generator →

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