#7E221C#7E221C

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

Color values

HEX#7E221C
RGBrgb(126, 34, 28)
HSLhsl(4, 64%, 30%)
HSVhsv(4, 78%, 49%)
CMYKcmyk(0%, 73%, 77.8%, 50.6%)
CIE-LABlab(28.55, 39.09, 26.85)
CIE-LCHlch(28.55, 47.42, 34.48°)
OKLaboklab(39.91% 0.1125 0.06)
OKLCHoklch(39.91% 0.127 28.1)
XYZxyz(9.3869, 5.6649, 1.6976)
Luminance0.0566 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E221C #1C787E
analogous
#7E1C47 #7E221C #7E531C
triadic
#7E221C #1C7E22 #221C7E
tetradic
#7E221C #477E1C #1C787E #531C7E
square
#7E221C #477E1C #1C787E #531C7E
split-complementary
#7E221C #1C7E53 #1C477E
monochromatic
#1A0706 #4C1411 #7E221C #B03027 #D54940

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E221C#FFFFFF#000000##FFFFFF
##7E221C1.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)
#3D371A
Deuteranopia (green-blind)
#544B19
Tritanopia (blue-blind)
#8B0121
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e221c;
/* rgb */ color: rgb(126, 34, 28);
/* oklch */ color: oklch(39.9% 0.127 28.1);
Tailwind
colors: {
  custom: {
    50: '#ab6458',
    500: '#7e221c',
    950: '#000000',
  },
}
SCSS
$custom: #7e221c;
$custom-light: #ab6458;
$custom-dark: #000000;
JSON
{
  "hex": "#7e221c",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 28
  },
  "hsl": {
    "h": 3.673,
    "s": 63.636,
    "l": 30.196
  },
  "oklch": {
    "l": 0.39907,
    "c": 0.12744,
    "h": 28.1
  },
  "luminance": 0.05664
}

Semantic roles & 50–950 ramp

primary
#7E221C
secondary
#44ABB2
accent
#DDE741
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7E221C

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

Preview Lab → · Contrast checker → · Palette generator →

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