#7E221A#7E221A

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

Color values

HEX#7E221A
RGBrgb(126, 34, 26)
HSLhsl(5, 66%, 30%)
HSVhsv(5, 79%, 49%)
CMYKcmyk(0%, 73%, 79.4%, 50.6%)
CIE-LABlab(28.53, 39.00, 28.03)
CIE-LCHlch(28.53, 48.03, 35.71°)
OKLaboklab(39.88% 0.1117 0.062)
OKLCHoklch(39.88% 0.128 29)
XYZxyz(9.3637, 5.6557, 1.5757)
Luminance0.0565 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E221A #1A767E
analogous
#7E1A44 #7E221A #7E541A
triadic
#7E221A #1A7E22 #221A7E
tetradic
#7E221A #447E1A #1A767E #541A7E
square
#7E221A #447E1A #1A767E #541A7E
split-complementary
#7E221A #1A7E54 #1A447E
monochromatic
#190705 #4B1410 #7E221A #B13024 #D7483C

Accessibility & contrast

On white

9.86
#7E221A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E221A
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E221A#FFFFFF#000000##FFFFFF
##7E221A1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e221a;
/* rgb */ color: rgb(126, 34, 26);
/* oklch */ color: oklch(39.9% 0.128 29.0);
Tailwind
colors: {
  custom: {
    50: '#ab6457',
    500: '#7e221a',
    950: '#000000',
  },
}
SCSS
$custom: #7e221a;
$custom-light: #ab6457;
$custom-dark: #000000;
JSON
{
  "hex": "#7e221a",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 26
  },
  "hsl": {
    "h": 4.8,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.39881,
    "c": 0.12778,
    "h": 29
  },
  "luminance": 0.05654
}

Semantic roles & 50–950 ramp

primary
#7E221A
secondary
#42A9B2
accent
#DBE93F
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7E221A

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

Preview Lab → · Contrast checker → · Palette generator →

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