#7E1217#7E1217

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

Color values

HEX#7E1217
RGBrgb(126, 18, 23)
HSLhsl(357, 75%, 28%)
HSVhsv(357, 86%, 49%)
CMYKcmyk(0%, 85.7%, 81.7%, 50.6%)
CIE-LABlab(26.54, 44.34, 27.75)
CIE-LCHlch(26.54, 52.31, 32.04°)
OKLaboklab(38.39% 0.1279 0.0604)
OKLCHoklch(38.39% 0.141 25.3)
XYZxyz(8.9763, 4.9316, 1.2897)
Luminance0.0493 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1217 #127E79
analogous
#7E124D #7E1217 #7E4312
triadic
#7E1217 #177E12 #12177E
tetradic
#7E1217 #4D7E12 #127E79 #43127E
square
#7E1217 #4D7E12 #127E79 #43127E
split-complementary
#7E1217 #127E43 #124D7E
monochromatic
#1B0405 #480A0D #7E1217 #B41A21 #E12A32

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E1217#FFFFFF#000000##FFFFFF
##7E12171.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)
#363016
Deuteranopia (green-blind)
#504712
Tritanopia (blue-blind)
#8B0016
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #7e1217;
/* rgb */ color: rgb(126, 18, 23);
/* oklch */ color: oklch(38.4% 0.141 25.3);
Tailwind
colors: {
  custom: {
    50: '#ac5d54',
    500: '#7e1217',
    950: '#000000',
  },
}
SCSS
$custom: #7e1217;
$custom-light: #ac5d54;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1217",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 23
  },
  "hsl": {
    "h": 357.222,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3839,
    "c": 0.14144,
    "h": 25.3
  },
  "luminance": 0.0493
}

Semantic roles & 50–950 ramp

primary
#7E1217
secondary
#38B4AE
accent
#F2E936
background
#FBF5F4
surface
#F6E9E7
border
#D0C5C3
text
#120502
muted
#817978

Preview Lab

Preview with #7E1217

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

Preview Lab → · Contrast checker → · Palette generator →

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