#7D170F#7D170F

#7D170F is a dark, vivid red. Relative luminance 0.050; OKLCH L 38.5% C 0.138 H 29.5°. Best body text is #FFFFFF at 10.49:1 contrast (WCAG AA passes).

Color values

HEX#7D170F
RGBrgb(125, 23, 15)
HSLhsl(4, 79%, 27%)
HSVhsv(4, 88%, 49%)
CMYKcmyk(0%, 81.6%, 88%, 51%)
CIE-LABlab(26.76, 42.33, 32.51)
CIE-LCHlch(26.76, 53.37, 37.53°)
OKLaboklab(38.49% 0.12 0.0678)
OKLCHoklch(38.49% 0.138 29.5)
XYZxyz(8.8512, 5.0087, 0.9526)
Luminance0.0501 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D170F #0F757D
analogous
#7D0F3E #7D170F #7D4E0F
triadic
#7D170F #0F7D17 #170F7D
tetradic
#7D170F #3E7D0F #0F757D #4E0F7D
square
#7D170F #3E7D0F #0F757D #4E0F7D
split-complementary
#7D170F #0F7D4E #0F3E7D
monochromatic
#1B0503 #460D08 #7D170F #B42116 #E43022

Accessibility & contrast

On white

10.49
#7D170F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#7D170F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D170F
10.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D170F#FFFFFF#000000##FFFFFF
##7D170F1.0010.492.0010.49
#FFFFFF10.491.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38310C
Deuteranopia (green-blind)
#514708
Tritanopia (blue-blind)
#8A0017
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #7d170f;
/* rgb */ color: rgb(125, 23, 15);
/* oklch */ color: oklch(38.5% 0.138 29.5);
Tailwind
colors: {
  custom: {
    50: '#ab5f4f',
    500: '#7d170f',
    950: '#000000',
  },
}
SCSS
$custom: #7d170f;
$custom-light: #ab5f4f;
$custom-dark: #000000;
JSON
{
  "hex": "#7d170f",
  "rgb": {
    "r": 125,
    "g": 23,
    "b": 15
  },
  "hsl": {
    "h": 4.364,
    "s": 78.571,
    "l": 27.451
  },
  "oklch": {
    "l": 0.38491,
    "c": 0.13783,
    "h": 29.5
  },
  "luminance": 0.05007
}

Semantic roles & 50–950 ramp

primary
#7D170F
secondary
#34AAB4
accent
#E7F533
background
#FBF5F4
surface
#F6EAE7
border
#D0C6C3
text
#120502
muted
#817978

Preview Lab

Preview with #7D170F

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

Preview Lab → · Contrast checker → · Palette generator →

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