#7E2222#7E2222

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

Color values

HEX#7E2222
RGBrgb(126, 34, 34)
HSLhsl(0, 58%, 31%)
HSVhsv(0, 73%, 49%)
CMYKcmyk(0%, 73%, 73%, 50.6%)
CIE-LABlab(28.63, 39.38, 23.20)
CIE-LCHlch(28.63, 45.70, 30.50°)
OKLaboklab(40% 0.1147 0.0534)
OKLCHoklch(40% 0.127 24.9)
XYZxyz(9.4660, 5.6966, 2.1142)
Luminance0.0570 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2222 #227E7E
analogous
#7E2250 #7E2222 #7E5022
triadic
#7E2222 #227E22 #22227E
tetradic
#7E2222 #507E22 #227E7E #50227E
square
#7E2222 #507E22 #227E7E #50227E
split-complementary
#7E2222 #227E50 #22507E
monochromatic
#1E0808 #4E1515 #7E2222 #AE2F2F #CF4C4C

Accessibility & contrast

On white

9.82
#7E2222 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#7E2222 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2222
9.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2222#FFFFFF#000000##FFFFFF
##7E22221.009.822.149.82
#FFFFFF9.821.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C3721
Deuteranopia (green-blind)
#534B1F
Tritanopia (blue-blind)
#8B0323
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e2222;
/* rgb */ color: rgb(126, 34, 34);
/* oklch */ color: oklch(40.0% 0.127 24.9);
Tailwind
colors: {
  custom: {
    50: '#aa645d',
    500: '#7e2222',
    950: '#000000',
  },
}
SCSS
$custom: #7e2222;
$custom-light: #aa645d;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2222",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 34
  },
  "hsl": {
    "h": 0,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.39996,
    "c": 0.12652,
    "h": 24.9
  },
  "luminance": 0.05695
}

Semantic roles & 50–950 ramp

primary
#7E2222
secondary
#4BB1B1
accent
#E1E147
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110604
muted
#807A79

Preview Lab

Preview with #7E2222

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

Preview Lab → · Contrast checker → · Palette generator →

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