#7E172A#7E172A

#7E172A is a dark, vivid red. Relative luminance 0.052; OKLCH L 39.1% C 0.136 H 16.7°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#7E172A
RGBrgb(126, 23, 42)
HSLhsl(349, 69%, 29%)
HSVhsv(349, 82%, 49%)
CMYKcmyk(0%, 81.7%, 66.7%, 50.6%)
CIE-LABlab(27.34, 43.82, 16.37)
CIE-LCHlch(27.34, 46.77, 20.48°)
OKLaboklab(39.08% 0.1307 0.0393)
OKLCHoklch(39.08% 0.136 16.7)
XYZxyz(9.3295, 5.2170, 2.7058)
Luminance0.0522 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E172A #177E6B
analogous
#7E175E #7E172A #7E3817
triadic
#7E172A #2A7E17 #172A7E
tetradic
#7E172A #5E7E17 #177E6B #38177E
square
#7E172A #5E7E17 #177E6B #38177E
split-complementary
#7E172A #177E38 #175E7E
monochromatic
#1A0509 #4A0E19 #7E172A #B2203B #DA3554

Accessibility & contrast

On white

10.28
#7E172A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#7E172A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E172A
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E172A#FFFFFF#000000##FFFFFF
##7E172A1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35332A
Deuteranopia (green-blind)
#4F4827
Tritanopia (blue-blind)
#8B001F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7e172a;
/* rgb */ color: rgb(126, 23, 42);
/* oklch */ color: oklch(39.1% 0.136 16.7);
Tailwind
colors: {
  custom: {
    50: '#aa5f63',
    500: '#7e172a',
    950: '#000000',
  },
}
SCSS
$custom: #7e172a;
$custom-light: #aa5f63;
$custom-dark: #000000;
JSON
{
  "hex": "#7e172a",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 42
  },
  "hsl": {
    "h": 348.932,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.39082,
    "c": 0.13647,
    "h": 16.7
  },
  "luminance": 0.05216
}

Semantic roles & 50–950 ramp

primary
#7E172A
secondary
#3EB39D
accent
#ECCB3C
background
#FBF5F5
surface
#F6EAEA
border
#D0C6C6
text
#110505
muted
#807979

Preview Lab

Preview with #7E172A

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

Preview Lab → · Contrast checker → · Palette generator →

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