#7E1F17#7E1F17

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

Color values

HEX#7E1F17
RGBrgb(126, 31, 23)
HSLhsl(5, 69%, 29%)
HSVhsv(5, 82%, 49%)
CMYKcmyk(0%, 75.4%, 81.7%, 50.6%)
CIE-LABlab(28.06, 40.08, 29.32)
CIE-LCHlch(28.06, 49.66, 36.19°)
OKLaboklab(39.52% 0.1145 0.0639)
OKLCHoklch(39.52% 0.131 29.2)
XYZxyz(9.2499, 5.4789, 1.3809)
Luminance0.0548 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F17 #17767E
analogous
#7E1743 #7E1F17 #7E5317
triadic
#7E1F17 #177E1F #1F177E
tetradic
#7E1F17 #437E17 #17767E #53177E
square
#7E1F17 #437E17 #17767E #53177E
split-complementary
#7E1F17 #177E53 #17437E
monochromatic
#1A0605 #4A120E #7E1F17 #B22C20 #DA4235

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E1F17#FFFFFF#000000##FFFFFF
##7E1F171.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)
#3B3515
Deuteranopia (green-blind)
#534A13
Tritanopia (blue-blind)
#8B001E
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7e1f17;
/* rgb */ color: rgb(126, 31, 23);
/* oklch */ color: oklch(39.5% 0.131 29.2);
Tailwind
colors: {
  custom: {
    50: '#ab6255',
    500: '#7e1f17',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f17;
$custom-light: #ab6255;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f17",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 23
  },
  "hsl": {
    "h": 4.66,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3952,
    "c": 0.13107,
    "h": 29.2
  },
  "luminance": 0.05477
}

Semantic roles & 50–950 ramp

primary
#7E1F17
secondary
#3EAAB3
accent
#DEEC3C
background
#FBF6F4
surface
#F6EBE8
border
#D0C6C4
text
#120503
muted
#817A78

Preview Lab

Preview with #7E1F17

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

Preview Lab → · Contrast checker → · Palette generator →

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