#7E221B#7E221B

#7E221B is a dark, vivid red. Relative luminance 0.057; OKLCH L 39.9% C 0.128 H 28.6°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).

Color values

HEX#7E221B
RGBrgb(126, 34, 27)
HSLhsl(4, 65%, 30%)
HSVhsv(4, 79%, 49%)
CMYKcmyk(0%, 73%, 78.6%, 50.6%)
CIE-LABlab(28.54, 39.04, 27.44)
CIE-LCHlch(28.54, 47.72, 35.10°)
OKLaboklab(39.89% 0.1121 0.061)
OKLCHoklch(39.89% 0.128 28.6)
XYZxyz(9.3751, 5.6602, 1.6356)
Luminance0.0566 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E221B #1B777E
analogous
#7E1B46 #7E221B #7E531B
triadic
#7E221B #1B7E22 #221B7E
tetradic
#7E221B #467E1B #1B777E #531B7E
square
#7E221B #467E1B #1B777E #531B7E
split-complementary
#7E221B #1B7E53 #1B467E
monochromatic
#190705 #4C1410 #7E221B #B03026 #D6493E

Accessibility & contrast

On white

9.85
#7E221B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#7E221B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E221B
9.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E221B#FFFFFF#000000##FFFFFF
##7E221B1.009.852.139.85
#FFFFFF9.851.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D3719
Deuteranopia (green-blind)
#544B17
Tritanopia (blue-blind)
#8B0021
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e221b;
/* rgb */ color: rgb(126, 34, 27);
/* oklch */ color: oklch(39.9% 0.128 28.6);
Tailwind
colors: {
  custom: {
    50: '#ab6458',
    500: '#7e221b',
    950: '#000000',
  },
}
SCSS
$custom: #7e221b;
$custom-light: #ab6458;
$custom-dark: #000000;
JSON
{
  "hex": "#7e221b",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 27
  },
  "hsl": {
    "h": 4.242,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.39894,
    "c": 0.12761,
    "h": 28.6
  },
  "luminance": 0.05659
}

Semantic roles & 50–950 ramp

primary
#7E221B
secondary
#43AAB2
accent
#DCE840
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7E221B

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

Preview Lab → · Contrast checker → · Palette generator →

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