#7E172F#7E172F

#7E172F is a dark, vivid red. Relative luminance 0.053; OKLCH L 39.2% C 0.137 H 13.7°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#7E172F
RGBrgb(126, 23, 47)
HSLhsl(346, 69%, 29%)
HSVhsv(346, 82%, 49%)
CMYKcmyk(0%, 81.7%, 62.7%, 50.6%)
CIE-LABlab(27.45, 44.14, 13.15)
CIE-LCHlch(27.45, 46.06, 16.59°)
OKLaboklab(39.19% 0.1328 0.0323)
OKLCHoklch(39.19% 0.137 13.7)
XYZxyz(9.4246, 5.2551, 3.2068)
Luminance0.0525 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E172F #177E66
analogous
#7E1763 #7E172F #7E3217
triadic
#7E172F #2F7E17 #172F7E
tetradic
#7E172F #637E17 #177E66 #32177E
square
#7E172F #637E17 #177E66 #32177E
split-complementary
#7E172F #177E32 #17637E
monochromatic
#1A050A #4A0E1C #7E172F #B22042 #DA355C

Accessibility & contrast

On white

10.24
#7E172F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E172F
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E172F#FFFFFF#000000##FFFFFF
##7E172F1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e172f;
/* rgb */ color: rgb(126, 23, 47);
/* oklch */ color: oklch(39.2% 0.137 13.7);
Tailwind
colors: {
  custom: {
    50: '#aa6067',
    500: '#7e172f',
    950: '#000000',
  },
}
SCSS
$custom: #7e172f;
$custom-light: #aa6067;
$custom-dark: #000000;
JSON
{
  "hex": "#7e172f",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 346.019,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.39194,
    "c": 0.13667,
    "h": 13.7
  },
  "luminance": 0.05254
}

Semantic roles & 50–950 ramp

primary
#7E172F
secondary
#3EB398
accent
#ECC33C
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110506
muted
#80797A

Preview Lab

Preview with #7E172F

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

Preview Lab → · Contrast checker → · Palette generator →

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