#7E231A#7E231A

#7E231A is a dark, vivid red. Relative luminance 0.057; OKLCH L 40.0% C 0.127 H 29.4°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#7E231A
RGBrgb(126, 35, 26)
HSLhsl(5, 66%, 30%)
HSVhsv(5, 79%, 49%)
CMYKcmyk(0%, 72.2%, 79.4%, 50.6%)
CIE-LABlab(28.68, 38.59, 28.19)
CIE-LCHlch(28.68, 47.79, 36.16°)
OKLaboklab(40% 0.1104 0.0623)
OKLCHoklch(40% 0.127 29.4)
XYZxyz(9.3927, 5.7137, 1.5854)
Luminance0.0571 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E231A #1A757E
analogous
#7E1A43 #7E231A #7E551A
triadic
#7E231A #1A7E23 #231A7E
tetradic
#7E231A #437E1A #1A757E #551A7E
square
#7E231A #437E1A #1A757E #551A7E
split-complementary
#7E231A #1A7E55 #1A437E
monochromatic
#190705 #4B1510 #7E231A #B13124 #D74A3C

Accessibility & contrast

On white

9.80
#7E231A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#7E231A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E231A
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E231A#FFFFFF#000000##FFFFFF
##7E231A1.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D3718
Deuteranopia (green-blind)
#544B16
Tritanopia (blue-blind)
#8B0322
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e231a;
/* rgb */ color: rgb(126, 35, 26);
/* oklch */ color: oklch(40.0% 0.127 29.4);
Tailwind
colors: {
  custom: {
    50: '#ab6457',
    500: '#7e231a',
    950: '#000000',
  },
}
SCSS
$custom: #7e231a;
$custom-light: #ab6457;
$custom-dark: #000000;
JSON
{
  "hex": "#7e231a",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 26
  },
  "hsl": {
    "h": 5.4,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.39995,
    "c": 0.12681,
    "h": 29.4
  },
  "luminance": 0.05712
}

Semantic roles & 50–950 ramp

primary
#7E231A
secondary
#42A8B2
accent
#D9E93F
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7E231A

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

Preview Lab → · Contrast checker → · Palette generator →

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