#7E231B#7E231B

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

Color values

HEX#7E231B
RGBrgb(126, 35, 27)
HSLhsl(5, 65%, 30%)
HSVhsv(5, 79%, 49%)
CMYKcmyk(0%, 72.2%, 78.6%, 50.6%)
CIE-LABlab(28.69, 38.63, 27.61)
CIE-LCHlch(28.69, 47.48, 35.55°)
OKLaboklab(40.01% 0.1108 0.0613)
OKLCHoklch(40.01% 0.127 29)
XYZxyz(9.4041, 5.7182, 1.6452)
Luminance0.0572 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E231B #1B767E
analogous
#7E1B45 #7E231B #7E541B
triadic
#7E231B #1B7E23 #231B7E
tetradic
#7E231B #457E1B #1B767E #541B7E
square
#7E231B #457E1B #1B767E #541B7E
split-complementary
#7E231B #1B7E54 #1B457E
monochromatic
#190705 #4C1510 #7E231B #B03126 #D64A3E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E231B#FFFFFF#000000##FFFFFF
##7E231B1.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)
#3D3719
Deuteranopia (green-blind)
#544B18
Tritanopia (blue-blind)
#8B0322
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e231b;
/* rgb */ color: rgb(126, 35, 27);
/* oklch */ color: oklch(40.0% 0.127 29.0);
Tailwind
colors: {
  custom: {
    50: '#ab6458',
    500: '#7e231b',
    950: '#000000',
  },
}
SCSS
$custom: #7e231b;
$custom-light: #ab6458;
$custom-dark: #000000;
JSON
{
  "hex": "#7e231b",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 27
  },
  "hsl": {
    "h": 4.848,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.40008,
    "c": 0.12663,
    "h": 29
  },
  "luminance": 0.05717
}

Semantic roles & 50–950 ramp

primary
#7E231B
secondary
#43A9B2
accent
#DAE840
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7E231B

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

Preview Lab → · Contrast checker → · Palette generator →

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