#7E1818#7E1818

#7E1818 is a dark, vivid red. Relative luminance 0.052; OKLCH L 38.9% C 0.137 H 26.4°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).

Color values

HEX#7E1818
RGBrgb(126, 24, 24)
HSLhsl(0, 68%, 29%)
HSVhsv(0, 81%, 49%)
CMYKcmyk(0%, 81%, 81%, 50.6%)
CIE-LABlab(27.18, 42.61, 27.81)
CIE-LCHlch(27.18, 50.88, 33.13°)
OKLaboklab(38.87% 0.1226 0.0609)
OKLCHoklch(38.87% 0.137 26.4)
XYZxyz(9.0968, 5.1563, 1.3803)
Luminance0.0515 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1818 #187E7E
analogous
#7E184B #7E1818 #7E4B18
triadic
#7E1818 #187E18 #18187E
tetradic
#7E1818 #4B7E18 #187E7E #4B187E
square
#7E1818 #4B7E18 #187E7E #4B187E
split-complementary
#7E1818 #187E4B #184B7E
monochromatic
#1A0505 #4B0E0E #7E1818 #B12222 #D93737

Accessibility & contrast

On white

10.34
#7E1818 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#7E1818 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1818
10.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1818#FFFFFF#000000##FFFFFF
##7E18181.0010.342.0310.34
#FFFFFF10.341.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383217
Deuteranopia (green-blind)
#514814
Tritanopia (blue-blind)
#8B001A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e1818;
/* rgb */ color: rgb(126, 24, 24);
/* oklch */ color: oklch(38.9% 0.137 26.4);
Tailwind
colors: {
  custom: {
    50: '#ac5f55',
    500: '#7e1818',
    950: '#000000',
  },
}
SCSS
$custom: #7e1818;
$custom-light: #ac5f55;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1818",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 24
  },
  "hsl": {
    "h": 0,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.38867,
    "c": 0.13692,
    "h": 26.4
  },
  "luminance": 0.05155
}

Semantic roles & 50–950 ramp

primary
#7E1818
secondary
#3FB2B2
accent
#EBEB3D
background
#FBF5F5
surface
#F6EAE8
border
#D0C6C4
text
#120503
muted
#817978

Preview Lab

Preview with #7E1818

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

Preview Lab → · Contrast checker → · Palette generator →

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