#7E171C#7E171C

#7E171C is a dark, vivid red. Relative luminance 0.051; OKLCH L 38.8% C 0.137 H 24.3°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#7E171C
RGBrgb(126, 23, 28)
HSLhsl(357, 69%, 29%)
HSVhsv(357, 82%, 49%)
CMYKcmyk(0%, 81.7%, 77.8%, 50.6%)
CIE-LABlab(27.11, 43.09, 25.25)
CIE-LCHlch(27.11, 49.94, 30.37°)
OKLaboklab(38.84% 0.1251 0.0565)
OKLCHoklch(38.84% 0.137 24.3)
XYZxyz(9.1213, 5.1337, 1.6090)
Luminance0.0513 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E171C #177E79
analogous
#7E1750 #7E171C #7E4617
triadic
#7E171C #1C7E17 #171C7E
tetradic
#7E171C #507E17 #177E79 #46177E
square
#7E171C #507E17 #177E79 #46177E
split-complementary
#7E171C #177E46 #17507E
monochromatic
#1A0506 #4A0E10 #7E171C #B22028 #DA353D

Accessibility & contrast

On white

10.36
#7E171C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#7E171C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E171C
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E171C#FFFFFF#000000##FFFFFF
##7E171C1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37321B
Deuteranopia (green-blind)
#514818
Tritanopia (blue-blind)
#8B001A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7e171c;
/* rgb */ color: rgb(126, 23, 28);
/* oklch */ color: oklch(38.8% 0.137 24.3);
Tailwind
colors: {
  custom: {
    50: '#ab5f58',
    500: '#7e171c',
    950: '#000000',
  },
}
SCSS
$custom: #7e171c;
$custom-light: #ab5f58;
$custom-dark: #000000;
JSON
{
  "hex": "#7e171c",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 28
  },
  "hsl": {
    "h": 357.087,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.38836,
    "c": 0.13724,
    "h": 24.3
  },
  "luminance": 0.05132
}

Semantic roles & 50–950 ramp

primary
#7E171C
secondary
#3EB3AD
accent
#ECE33C
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#120503
muted
#817978

Preview Lab

Preview with #7E171C

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

Preview Lab → · Contrast checker → · Palette generator →

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