#7E2118#7E2118

#7E2118 is a dark, vivid red. Relative luminance 0.056; OKLCH L 39.7% C 0.129 H 29.5°. Best body text is #FFFFFF at 9.92:1 contrast (WCAG AA passes).

Color values

HEX#7E2118
RGBrgb(126, 33, 24)
HSLhsl(5, 68%, 29%)
HSVhsv(5, 81%, 49%)
CMYKcmyk(0%, 73.8%, 81%, 50.6%)
CIE-LABlab(28.36, 39.33, 29.04)
CIE-LCHlch(28.36, 48.89, 36.44°)
OKLaboklab(39.75% 0.1123 0.0636)
OKLCHoklch(39.75% 0.129 29.5)
XYZxyz(9.3140, 5.5907, 1.4527)
Luminance0.0559 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2118 #18757E
analogous
#7E1842 #7E2118 #7E5418
triadic
#7E2118 #187E21 #21187E
tetradic
#7E2118 #427E18 #18757E #54187E
square
#7E2118 #427E18 #18757E #54187E
split-complementary
#7E2118 #187E54 #18427E
monochromatic
#1A0705 #4B140E #7E2118 #B12E22 #D94637

Accessibility & contrast

On white

9.92
#7E2118 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.12
#7E2118 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2118
9.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2118#FFFFFF#000000##FFFFFF
##7E21181.009.922.129.92
#FFFFFF9.921.0021.001.00
#0000002.1221.001.0021.00
##FFFFFF9.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C3616
Deuteranopia (green-blind)
#544A14
Tritanopia (blue-blind)
#8B0020
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #7e2118;
/* rgb */ color: rgb(126, 33, 24);
/* oklch */ color: oklch(39.7% 0.129 29.5);
Tailwind
colors: {
  custom: {
    50: '#ab6356',
    500: '#7e2118',
    950: '#000000',
  },
}
SCSS
$custom: #7e2118;
$custom-light: #ab6356;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2118",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 24
  },
  "hsl": {
    "h": 5.294,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.39746,
    "c": 0.12907,
    "h": 29.5
  },
  "luminance": 0.05589
}

Semantic roles & 50–950 ramp

primary
#7E2118
secondary
#3FA8B2
accent
#DCEB3D
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7E2118

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

Preview Lab → · Contrast checker → · Palette generator →

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