#7E172E#7E172E

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

Color values

HEX#7E172E
RGBrgb(126, 23, 46)
HSLhsl(347, 69%, 29%)
HSVhsv(347, 82%, 49%)
CMYKcmyk(0%, 81.7%, 63.5%, 50.6%)
CIE-LABlab(27.43, 44.08, 13.79)
CIE-LCHlch(27.43, 46.18, 17.38°)
OKLaboklab(39.17% 0.1324 0.0337)
OKLCHoklch(39.17% 0.137 14.3)
XYZxyz(9.4047, 5.2471, 3.1018)
Luminance0.0525 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E172E #177E67
analogous
#7E1762 #7E172E #7E3417
triadic
#7E172E #2E7E17 #172E7E
tetradic
#7E172E #627E17 #177E67 #34177E
square
#7E172E #627E17 #177E67 #34177E
split-complementary
#7E172E #177E34 #17627E
monochromatic
#1A0509 #4A0E1B #7E172E #B22041 #DA355A

Accessibility & contrast

On white

10.25
#7E172E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E172E
10.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E172E#FFFFFF#000000##FFFFFF
##7E172E1.0010.252.0510.25
#FFFFFF10.251.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.251.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e172e;
/* rgb */ color: rgb(126, 23, 46);
/* oklch */ color: oklch(39.2% 0.137 14.3);
Tailwind
colors: {
  custom: {
    50: '#aa5f66',
    500: '#7e172e',
    950: '#000000',
  },
}
SCSS
$custom: #7e172e;
$custom-light: #aa5f66;
$custom-dark: #000000;
JSON
{
  "hex": "#7e172e",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 46
  },
  "hsl": {
    "h": 346.602,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3917,
    "c": 0.13661,
    "h": 14.3
  },
  "luminance": 0.05246
}

Semantic roles & 50–950 ramp

primary
#7E172E
secondary
#3EB399
accent
#ECC53C
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110505
muted
#80797A

Preview Lab

Preview with #7E172E

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

Preview Lab → · Contrast checker → · Palette generator →

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