#7E221D#7E221D

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

Color values

HEX#7E221D
RGBrgb(126, 34, 29)
HSLhsl(3, 63%, 30%)
HSVhsv(3, 77%, 49%)
CMYKcmyk(0%, 73%, 77%, 50.6%)
CIE-LABlab(28.56, 39.13, 26.25)
CIE-LCHlch(28.56, 47.12, 33.85°)
OKLaboklab(39.92% 0.1128 0.0589)
OKLCHoklch(39.92% 0.127 27.6)
XYZxyz(9.3990, 5.6698, 1.7616)
Luminance0.0567 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E221D #1D797E
analogous
#7E1D48 #7E221D #7E521D
triadic
#7E221D #1D7E22 #221D7E
tetradic
#7E221D #487E1D #1D797E #521D7E
square
#7E221D #487E1D #1D797E #521D7E
split-complementary
#7E221D #1D7E52 #1D487E
monochromatic
#1B0706 #4C1512 #7E221D #B02F28 #D34942

Accessibility & contrast

On white

9.84
#7E221D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E221D
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E221D#FFFFFF#000000##FFFFFF
##7E221D1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3D371C
Deuteranopia (green-blind)
#544B1A
Tritanopia (blue-blind)
#8B0122
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e221d;
/* rgb */ color: rgb(126, 34, 29);
/* oklch */ color: oklch(39.9% 0.127 27.6);
Tailwind
colors: {
  custom: {
    50: '#ab6459',
    500: '#7e221d',
    950: '#000000',
  },
}
SCSS
$custom: #7e221d;
$custom-light: #ab6459;
$custom-dark: #000000;
JSON
{
  "hex": "#7e221d",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 29
  },
  "hsl": {
    "h": 3.093,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.39921,
    "c": 0.12727,
    "h": 27.6
  },
  "luminance": 0.05668
}

Semantic roles & 50–950 ramp

primary
#7E221D
secondary
#45ACB1
accent
#DDE642
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7E221D

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

Preview Lab → · Contrast checker → · Palette generator →

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