#7E172C#7E172C

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

Color values

HEX#7E172C
RGBrgb(126, 23, 44)
HSLhsl(348, 69%, 29%)
HSVhsv(348, 82%, 49%)
CMYKcmyk(0%, 81.7%, 65.1%, 50.6%)
CIE-LABlab(27.38, 43.94, 15.08)
CIE-LCHlch(27.38, 46.46, 18.94°)
OKLaboklab(39.13% 0.1316 0.0365)
OKLCHoklch(39.13% 0.137 15.5)
XYZxyz(9.3662, 5.2317, 2.8990)
Luminance0.0523 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E172C #177E69
analogous
#7E1760 #7E172C #7E3617
triadic
#7E172C #2C7E17 #172C7E
tetradic
#7E172C #607E17 #177E69 #36177E
square
#7E172C #607E17 #177E69 #36177E
split-complementary
#7E172C #177E36 #17607E
monochromatic
#1A0509 #4A0E1A #7E172C #B2203E #DA3557

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E172C#FFFFFF#000000##FFFFFF
##7E172C1.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)
#35332C
Deuteranopia (green-blind)
#4F4829
Tritanopia (blue-blind)
#8B0020
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7e172c;
/* rgb */ color: rgb(126, 23, 44);
/* oklch */ color: oklch(39.1% 0.137 15.5);
Tailwind
colors: {
  custom: {
    50: '#aa5f64',
    500: '#7e172c',
    950: '#000000',
  },
}
SCSS
$custom: #7e172c;
$custom-light: #aa5f64;
$custom-dark: #000000;
JSON
{
  "hex": "#7e172c",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 44
  },
  "hsl": {
    "h": 347.767,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.39125,
    "c": 0.13652,
    "h": 15.5
  },
  "luminance": 0.0523
}

Semantic roles & 50–950 ramp

primary
#7E172C
secondary
#3EB39B
accent
#ECC83C
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110505
muted
#80797A

Preview Lab

Preview with #7E172C

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

Preview Lab → · Contrast checker → · Palette generator →

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