#7E222A#7E222A

#7E222A is a dark, vivid red. Relative luminance 0.057; OKLCH L 40.1% C 0.126 H 20.2°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).

Color values

HEX#7E222A
RGBrgb(126, 34, 42)
HSLhsl(355, 58%, 31%)
HSVhsv(355, 73%, 49%)
CMYKcmyk(0%, 73%, 66.7%, 50.6%)
CIE-LABlab(28.77, 39.85, 18.19)
CIE-LCHlch(28.77, 43.80, 24.54°)
OKLaboklab(40.14% 0.118 0.0434)
OKLCHoklch(40.14% 0.126 20.2)
XYZxyz(9.5951, 5.7482, 2.7943)
Luminance0.0575 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E222A #227E76
analogous
#7E2258 #7E222A #7E4822
triadic
#7E222A #2A7E22 #222A7E
tetradic
#7E222A #587E22 #227E76 #48227E
square
#7E222A #587E22 #227E76 #48227E
split-complementary
#7E222A #227E48 #22587E
monochromatic
#1E080A #4E151A #7E222A #AE2F3A #CF4C57

Accessibility & contrast

On white

9.77
#7E222A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#7E222A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E222A
9.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E222A#FFFFFF#000000##FFFFFF
##7E222A1.009.772.159.77
#FFFFFF9.771.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B372A
Deuteranopia (green-blind)
#524B27
Tritanopia (blue-blind)
#8B0626
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e222a;
/* rgb */ color: rgb(126, 34, 42);
/* oklch */ color: oklch(40.1% 0.126 20.2);
Tailwind
colors: {
  custom: {
    50: '#aa6463',
    500: '#7e222a',
    950: '#000000',
  },
}
SCSS
$custom: #7e222a;
$custom-light: #aa6463;
$custom-dark: #000000;
JSON
{
  "hex": "#7e222a",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 42
  },
  "hsl": {
    "h": 354.783,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.40139,
    "c": 0.12573,
    "h": 20.2
  },
  "luminance": 0.05747
}

Semantic roles & 50–950 ramp

primary
#7E222A
secondary
#4BB1A8
accent
#E1D347
background
#FBF6F5
surface
#F6EBEA
border
#D0C6C6
text
#110605
muted
#807A79

Preview Lab

Preview with #7E222A

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

Preview Lab → · Contrast checker → · Palette generator →

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