#7E2218#7E2218

#7E2218 is a dark, vivid red. Relative luminance 0.056; OKLCH L 39.9% C 0.128 H 29.9°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#7E2218
RGBrgb(126, 34, 24)
HSLhsl(6, 68%, 29%)
HSVhsv(6, 81%, 49%)
CMYKcmyk(0%, 73%, 81%, 50.6%)
CIE-LABlab(28.50, 38.92, 29.19)
CIE-LCHlch(28.50, 48.65, 36.87°)
OKLaboklab(39.86% 0.1111 0.0639)
OKLCHoklch(39.86% 0.128 29.9)
XYZxyz(9.3422, 5.6470, 1.4621)
Luminance0.0565 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2218 #18747E
analogous
#7E1841 #7E2218 #7E5518
triadic
#7E2218 #187E22 #22187E
tetradic
#7E2218 #417E18 #18747E #55187E
square
#7E2218 #417E18 #18747E #55187E
split-complementary
#7E2218 #187E55 #18417E
monochromatic
#1A0705 #4B140E #7E2218 #B13022 #D94737

Accessibility & contrast

On white

9.86
#7E2218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2218
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2218#FFFFFF#000000##FFFFFF
##7E22181.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e2218;
/* rgb */ color: rgb(126, 34, 24);
/* oklch */ color: oklch(39.9% 0.128 29.9);
Tailwind
colors: {
  custom: {
    50: '#ab6456',
    500: '#7e2218',
    950: '#000000',
  },
}
SCSS
$custom: #7e2218;
$custom-light: #ab6456;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2218",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 24
  },
  "hsl": {
    "h": 5.882,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.39857,
    "c": 0.12812,
    "h": 29.9
  },
  "luminance": 0.05646
}

Semantic roles & 50–950 ramp

primary
#7E2218
secondary
#3FA7B2
accent
#DAEB3D
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7E2218

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

Preview Lab → · Contrast checker → · Palette generator →

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