#7D172A#7D172A

#7D172A is a dark, vivid red. Relative luminance 0.051; OKLCH L 38.9% C 0.135 H 16.5°. Best body text is #FFFFFF at 10.36:1 contrast (WCAG AA passes).

Color values

HEX#7D172A
RGBrgb(125, 23, 42)
HSLhsl(349, 69%, 29%)
HSVhsv(349, 82%, 49%)
CMYKcmyk(0%, 81.6%, 66.4%, 51%)
CIE-LABlab(27.13, 43.51, 16.05)
CIE-LCHlch(27.13, 46.38, 20.25°)
OKLaboklab(38.89% 0.1299 0.0386)
OKLCHoklch(38.89% 0.135 16.5)
XYZxyz(9.1828, 5.1413, 2.6989)
Luminance0.0514 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D172A #177D6A
analogous
#7D175D #7D172A #7D3717
triadic
#7D172A #2A7D17 #172A7D
tetradic
#7D172A #5D7D17 #177D6A #37177D
square
#7D172A #5D7D17 #177D6A #37177D
split-complementary
#7D172A #177D37 #175D7D
monochromatic
#1A0509 #490D19 #7D172A #B1213B #DA3553

Accessibility & contrast

On white

10.36
#7D172A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#7D172A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D172A
10.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D172A#FFFFFF#000000##FFFFFF
##7D172A1.0010.362.0310.36
#FFFFFF10.361.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35332A
Deuteranopia (green-blind)
#4F4827
Tritanopia (blue-blind)
#8A001F
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7d172a;
/* rgb */ color: rgb(125, 23, 42);
/* oklch */ color: oklch(38.9% 0.135 16.5);
Tailwind
colors: {
  custom: {
    50: '#a95f63',
    500: '#7d172a',
    950: '#000000',
  },
}
SCSS
$custom: #7d172a;
$custom-light: #a95f63;
$custom-dark: #000000;
JSON
{
  "hex": "#7d172a",
  "rgb": {
    "r": 125,
    "g": 23,
    "b": 42
  },
  "hsl": {
    "h": 348.824,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.38889,
    "c": 0.13547,
    "h": 16.5
  },
  "luminance": 0.0514
}

Semantic roles & 50–950 ramp

primary
#7D172A
secondary
#3EB29C
accent
#ECCB3C
background
#FBF5F5
surface
#F6EAEA
border
#D0C6C6
text
#110505
muted
#807979

Preview Lab

Preview with #7D172A

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

Preview Lab → · Contrast checker → · Palette generator →

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