#7D172F#7D172F

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

Color values

HEX#7D172F
RGBrgb(125, 23, 47)
HSLhsl(346, 69%, 29%)
HSVhsv(346, 82%, 49%)
CMYKcmyk(0%, 81.6%, 62.4%, 51%)
CIE-LABlab(27.24, 43.84, 12.83)
CIE-LCHlch(27.24, 45.68, 16.31°)
OKLaboklab(39% 0.132 0.0316)
OKLCHoklch(39% 0.136 13.4)
XYZxyz(9.2779, 5.1794, 3.2000)
Luminance0.0518 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D172F #177D65
analogous
#7D1762 #7D172F #7D3217
triadic
#7D172F #2F7D17 #172F7D
tetradic
#7D172F #627D17 #177D65 #32177D
square
#7D172F #627D17 #177D65 #32177D
split-complementary
#7D172F #177D32 #17627D
monochromatic
#1A050A #490D1C #7D172F #B12142 #DA355B

Accessibility & contrast

On white

10.32
#7D172F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D172F
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D172F#FFFFFF#000000##FFFFFF
##7D172F1.0010.322.0410.32
#FFFFFF10.321.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34332F
Deuteranopia (green-blind)
#4E482C
Tritanopia (blue-blind)
#890021
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7d172f;
/* rgb */ color: rgb(125, 23, 47);
/* oklch */ color: oklch(39.0% 0.136 13.4);
Tailwind
colors: {
  custom: {
    50: '#a95f67',
    500: '#7d172f',
    950: '#000000',
  },
}
SCSS
$custom: #7d172f;
$custom-light: #a95f67;
$custom-dark: #000000;
JSON
{
  "hex": "#7d172f",
  "rgb": {
    "r": 125,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 345.882,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.39001,
    "c": 0.13569,
    "h": 13.4
  },
  "luminance": 0.05178
}

Semantic roles & 50–950 ramp

primary
#7D172F
secondary
#3EB297
accent
#ECC23C
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110506
muted
#80797A

Preview Lab

Preview with #7D172F

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

Preview Lab → · Contrast checker → · Palette generator →

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