#7E1218#7E1218

#7E1218 is a dark, vivid red. Relative luminance 0.049; OKLCH L 38.4% C 0.141 H 24.9°. Best body text is #FFFFFF at 10.57:1 contrast (WCAG AA passes).

Color values

HEX#7E1218
RGBrgb(126, 18, 24)
HSLhsl(357, 75%, 28%)
HSVhsv(357, 86%, 49%)
CMYKcmyk(0%, 85.7%, 81%, 50.6%)
CIE-LABlab(26.55, 44.38, 27.15)
CIE-LCHlch(26.55, 52.02, 31.46°)
OKLaboklab(38.4% 0.1282 0.0594)
OKLCHoklch(38.4% 0.141 24.9)
XYZxyz(8.9865, 4.9356, 1.3435)
Luminance0.0493 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1218 #127E78
analogous
#7E124E #7E1218 #7E4212
triadic
#7E1218 #187E12 #12187E
tetradic
#7E1218 #4E7E12 #127E78 #42127E
square
#7E1218 #4E7E12 #127E78 #42127E
split-complementary
#7E1218 #127E42 #124E7E
monochromatic
#1B0405 #480A0E #7E1218 #B41A22 #E12A34

Accessibility & contrast

On white

10.57
#7E1218 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#7E1218 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1218
10.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1218#FFFFFF#000000##FFFFFF
##7E12181.0010.571.9910.57
#FFFFFF10.571.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#363017
Deuteranopia (green-blind)
#504713
Tritanopia (blue-blind)
#8B0016
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #7e1218;
/* rgb */ color: rgb(126, 18, 24);
/* oklch */ color: oklch(38.4% 0.141 24.9);
Tailwind
colors: {
  custom: {
    50: '#ac5d55',
    500: '#7e1218',
    950: '#000000',
  },
}
SCSS
$custom: #7e1218;
$custom-light: #ac5d55;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1218",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 24
  },
  "hsl": {
    "h": 356.667,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.38403,
    "c": 0.14132,
    "h": 24.9
  },
  "luminance": 0.04934
}

Semantic roles & 50–950 ramp

primary
#7E1218
secondary
#38B4AD
accent
#F2E736
background
#FBF5F4
surface
#F6E9E8
border
#D0C5C4
text
#120503
muted
#817978

Preview Lab

Preview with #7E1218

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

Preview Lab → · Contrast checker → · Palette generator →

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