#7E1F18#7E1F18

#7E1F18 is a dark, vivid red. Relative luminance 0.055; OKLCH L 39.5% C 0.131 H 28.7°. Best body text is #FFFFFF at 10.02:1 contrast (WCAG AA passes).

Color values

HEX#7E1F18
RGBrgb(126, 31, 24)
HSLhsl(4, 68%, 29%)
HSVhsv(4, 81%, 49%)
CMYKcmyk(0%, 75.4%, 81%, 50.6%)
CIE-LABlab(28.07, 40.12, 28.74)
CIE-LCHlch(28.07, 49.35, 35.62°)
OKLaboklab(39.53% 0.1148 0.0629)
OKLCHoklch(39.53% 0.131 28.7)
XYZxyz(9.2601, 5.4830, 1.4347)
Luminance0.0548 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F18 #18777E
analogous
#7E1844 #7E1F18 #7E5218
triadic
#7E1F18 #187E1F #1F187E
tetradic
#7E1F18 #447E18 #18777E #52187E
square
#7E1F18 #447E18 #18777E #52187E
split-complementary
#7E1F18 #187E52 #18447E
monochromatic
#1A0605 #4B120E #7E1F18 #B12C22 #D94337

Accessibility & contrast

On white

10.02
#7E1F18 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#7E1F18 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F18
10.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F18#FFFFFF#000000##FFFFFF
##7E1F181.0010.022.1010.02
#FFFFFF10.021.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF10.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B3516
Deuteranopia (green-blind)
#534A14
Tritanopia (blue-blind)
#8B001E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7e1f18;
/* rgb */ color: rgb(126, 31, 24);
/* oklch */ color: oklch(39.5% 0.131 28.7);
Tailwind
colors: {
  custom: {
    50: '#ab6255',
    500: '#7e1f18',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f18;
$custom-light: #ab6255;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f18",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 24
  },
  "hsl": {
    "h": 4.118,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.39532,
    "c": 0.13092,
    "h": 28.7
  },
  "luminance": 0.05482
}

Semantic roles & 50–950 ramp

primary
#7E1F18
secondary
#3FABB2
accent
#DFEB3D
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#120503
muted
#817A78

Preview Lab

Preview with #7E1F18

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

Preview Lab → · Contrast checker → · Palette generator →

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