#7E2229#7E2229

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

Color values

HEX#7E2229
RGBrgb(126, 34, 41)
HSLhsl(355, 58%, 31%)
HSVhsv(355, 73%, 49%)
CMYKcmyk(0%, 73%, 67.5%, 50.6%)
CIE-LABlab(28.75, 39.78, 18.82)
CIE-LCHlch(28.75, 44.01, 25.32°)
OKLaboklab(40.12% 0.1176 0.0447)
OKLCHoklch(40.12% 0.126 20.8)
XYZxyz(9.5775, 5.7412, 2.7012)
Luminance0.0574 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2229 #227E77
analogous
#7E2257 #7E2229 #7E4922
triadic
#7E2229 #297E22 #22297E
tetradic
#7E2229 #577E22 #227E77 #49227E
square
#7E2229 #577E22 #227E77 #49227E
split-complementary
#7E2229 #227E49 #22577E
monochromatic
#1E080A #4E1519 #7E2229 #AE2F39 #CF4C56

Accessibility & contrast

On white

9.78
#7E2229 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2229
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2229#FFFFFF#000000##FFFFFF
##7E22291.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B3729
Deuteranopia (green-blind)
#524B26
Tritanopia (blue-blind)
#8B0625
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e2229;
/* rgb */ color: rgb(126, 34, 41);
/* oklch */ color: oklch(40.1% 0.126 20.8);
Tailwind
colors: {
  custom: {
    50: '#aa6462',
    500: '#7e2229',
    950: '#000000',
  },
}
SCSS
$custom: #7e2229;
$custom-light: #aa6462;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2229",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 41
  },
  "hsl": {
    "h": 355.435,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.4012,
    "c": 0.1258,
    "h": 20.8
  },
  "luminance": 0.0574
}

Semantic roles & 50–950 ramp

primary
#7E2229
secondary
#4BB1A9
accent
#E1D547
background
#FBF6F5
surface
#F6EBEA
border
#D0C6C6
text
#110605
muted
#807A79

Preview Lab

Preview with #7E2229

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

Preview Lab → · Contrast checker → · Palette generator →

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