#7E172B#7E172B

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

Color values

HEX#7E172B
RGBrgb(126, 23, 43)
HSLhsl(348, 69%, 29%)
HSVhsv(348, 82%, 49%)
CMYKcmyk(0%, 81.7%, 65.9%, 50.6%)
CIE-LABlab(27.36, 43.88, 15.72)
CIE-LCHlch(27.36, 46.61, 19.72°)
OKLaboklab(39.1% 0.1311 0.0379)
OKLCHoklch(39.1% 0.136 16.1)
XYZxyz(9.3476, 5.2242, 2.8012)
Luminance0.0522 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E172B #177E6A
analogous
#7E175F #7E172B #7E3717
triadic
#7E172B #2B7E17 #172B7E
tetradic
#7E172B #5F7E17 #177E6A #37177E
square
#7E172B #5F7E17 #177E6A #37177E
split-complementary
#7E172B #177E37 #175F7E
monochromatic
#1A0509 #4A0E19 #7E172B #B2203D #DA3555

Accessibility & contrast

On white

10.27
#7E172B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E172B
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E172B#FFFFFF#000000##FFFFFF
##7E172B1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35332B
Deuteranopia (green-blind)
#4F4828
Tritanopia (blue-blind)
#8B0020
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7e172b;
/* rgb */ color: rgb(126, 23, 43);
/* oklch */ color: oklch(39.1% 0.136 16.1);
Tailwind
colors: {
  custom: {
    50: '#aa5f64',
    500: '#7e172b',
    950: '#000000',
  },
}
SCSS
$custom: #7e172b;
$custom-light: #aa5f64;
$custom-dark: #000000;
JSON
{
  "hex": "#7e172b",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 43
  },
  "hsl": {
    "h": 348.35,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.39103,
    "c": 0.13648,
    "h": 16.1
  },
  "luminance": 0.05223
}

Semantic roles & 50–950 ramp

primary
#7E172B
secondary
#3EB39C
accent
#ECCA3C
background
#FBF5F5
surface
#F6EAEA
border
#D0C6C6
text
#110505
muted
#807979

Preview Lab

Preview with #7E172B

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

Preview Lab → · Contrast checker → · Palette generator →

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