#7E2A1B#7E2A1B

#7E2A1B is a dark, moderate red. Relative luminance 0.062; OKLCH L 40.9% C 0.120 H 32.4°. Best body text is #FFFFFF at 9.40:1 contrast (WCAG AA passes).

Color values

HEX#7E2A1B
RGBrgb(126, 42, 27)
HSLhsl(9, 65%, 30%)
HSVhsv(9, 79%, 49%)
CMYKcmyk(0%, 66.7%, 78.6%, 50.6%)
CIE-LABlab(29.84, 35.51, 28.85)
CIE-LCHlch(29.84, 45.75, 39.09°)
OKLaboklab(40.87% 0.101 0.064)
OKLCHoklch(40.87% 0.12 32.4)
XYZxyz(9.6310, 6.1721, 1.7209)
Luminance0.0617 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2A1B #1B6F7E
analogous
#7E1B3D #7E2A1B #7E5C1B
triadic
#7E2A1B #1B7E2A #2A1B7E
tetradic
#7E2A1B #3D7E1B #1B6F7E #5C1B7E
square
#7E2A1B #3D7E1B #1B6F7E #5C1B7E
split-complementary
#7E2A1B #1B7E5C #1B3D7E
monochromatic
#190805 #4C1910 #7E2A1B #B03B26 #D6553E

Accessibility & contrast

On white

9.40
#7E2A1B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7E2A1B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2A1B
9.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2A1B#FFFFFF#000000##FFFFFF
##7E2A1B1.009.402.239.40
#FFFFFF9.401.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#423B19
Deuteranopia (green-blind)
#564D18
Tritanopia (blue-blind)
#8B1427
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e2a1b;
/* rgb */ color: rgb(126, 42, 27);
/* oklch */ color: oklch(40.9% 0.120 32.4);
Tailwind
colors: {
  custom: {
    50: '#aa6858',
    500: '#7e2a1b',
    950: '#000000',
  },
}
SCSS
$custom: #7e2a1b;
$custom-light: #aa6858;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2a1b",
  "rgb": {
    "r": 126,
    "g": 42,
    "b": 27
  },
  "hsl": {
    "h": 9.091,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.40872,
    "c": 0.11961,
    "h": 32.4
  },
  "luminance": 0.06171
}

Semantic roles & 50–950 ramp

primary
#7E2A1B
secondary
#43A1B2
accent
#CEE840
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7E2A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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