#7E1226#7E1226

#7E1226 is a dark, vivid red. Relative luminance 0.050; OKLCH L 38.6% C 0.140 H 17.9°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#7E1226
RGBrgb(126, 18, 38)
HSLhsl(349, 75%, 28%)
HSVhsv(349, 86%, 49%)
CMYKcmyk(0%, 85.7%, 69.8%, 50.6%)
CIE-LABlab(26.76, 45.01, 18.30)
CIE-LCHlch(26.76, 48.59, 22.13°)
OKLaboklab(38.63% 0.1336 0.0431)
OKLCHoklch(38.63% 0.14 17.9)
XYZxyz(9.1714, 5.0096, 2.3174)
Luminance0.0501 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1226 #127E6A
analogous
#7E125C #7E1226 #7E3412
triadic
#7E1226 #267E12 #12267E
tetradic
#7E1226 #5C7E12 #127E6A #34127E
square
#7E1226 #5C7E12 #127E6A #34127E
split-complementary
#7E1226 #127E34 #125C7E
monochromatic
#1B0408 #480A16 #7E1226 #B41A36 #E12A4C

Accessibility & contrast

On white

10.49
#7E1226 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#7E1226 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1226
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1226#FFFFFF#000000##FFFFFF
##7E12261.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#343126
Deuteranopia (green-blind)
#4F4723
Tritanopia (blue-blind)
#8B001B
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #7e1226;
/* rgb */ color: rgb(126, 18, 38);
/* oklch */ color: oklch(38.6% 0.140 17.9);
Tailwind
colors: {
  custom: {
    50: '#ab5e60',
    500: '#7e1226',
    950: '#000000',
  },
}
SCSS
$custom: #7e1226;
$custom-light: #ab5e60;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1226",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 38
  },
  "hsl": {
    "h": 348.889,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.38627,
    "c": 0.14043,
    "h": 17.9
  },
  "luminance": 0.05008
}

Semantic roles & 50–950 ramp

primary
#7E1226
secondary
#38B49D
accent
#F2CF36
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110504
muted
#807979

Preview Lab

Preview with #7E1226

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

Preview Lab → · Contrast checker → · Palette generator →

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