#7E172D#7E172D

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

Color values

HEX#7E172D
RGBrgb(126, 23, 45)
HSLhsl(347, 69%, 29%)
HSVhsv(347, 82%, 49%)
CMYKcmyk(0%, 81.7%, 64.3%, 50.6%)
CIE-LABlab(27.41, 44.01, 14.44)
CIE-LCHlch(27.41, 46.32, 18.16°)
OKLaboklab(39.15% 0.132 0.0351)
OKLCHoklch(39.15% 0.137 14.9)
XYZxyz(9.3852, 5.2393, 2.9992)
Luminance0.0524 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E172D #177E68
analogous
#7E1761 #7E172D #7E3417
triadic
#7E172D #2D7E17 #172D7E
tetradic
#7E172D #617E17 #177E68 #34177E
square
#7E172D #617E17 #177E68 #34177E
split-complementary
#7E172D #177E34 #17617E
monochromatic
#1A0509 #4A0E1B #7E172D #B2203F #DA3558

Accessibility & contrast

On white

10.26
#7E172D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#7E172D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E172D
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E172D#FFFFFF#000000##FFFFFF
##7E172D1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35332D
Deuteranopia (green-blind)
#4F482A
Tritanopia (blue-blind)
#8B0021
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7e172d;
/* rgb */ color: rgb(126, 23, 45);
/* oklch */ color: oklch(39.1% 0.137 14.9);
Tailwind
colors: {
  custom: {
    50: '#aa5f65',
    500: '#7e172d',
    950: '#000000',
  },
}
SCSS
$custom: #7e172d;
$custom-light: #aa5f65;
$custom-dark: #000000;
JSON
{
  "hex": "#7e172d",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 45
  },
  "hsl": {
    "h": 347.184,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.39147,
    "c": 0.13656,
    "h": 14.9
  },
  "luminance": 0.05238
}

Semantic roles & 50–950 ramp

primary
#7E172D
secondary
#3EB39A
accent
#ECC63C
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110505
muted
#80797A

Preview Lab

Preview with #7E172D

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

Preview Lab → · Contrast checker → · Palette generator →

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