#7D171C#7D171C

#7D171C is a dark, vivid red. Relative luminance 0.051; OKLCH L 38.6% C 0.136 H 24.2°. Best body text is #FFFFFF at 10.44:1 contrast (WCAG AA passes).

Color values

HEX#7D171C
RGBrgb(125, 23, 28)
HSLhsl(357, 69%, 29%)
HSVhsv(357, 82%, 49%)
CMYKcmyk(0%, 81.6%, 77.6%, 51%)
CIE-LABlab(26.90, 42.77, 24.96)
CIE-LCHlch(26.90, 49.52, 30.26°)
OKLaboklab(38.64% 0.1242 0.0559)
OKLCHoklch(38.64% 0.136 24.2)
XYZxyz(8.9745, 5.0580, 1.6021)
Luminance0.0506 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D171C #177D78
analogous
#7D174F #7D171C #7D4517
triadic
#7D171C #1C7D17 #171C7D
tetradic
#7D171C #4F7D17 #177D78 #45177D
square
#7D171C #4F7D17 #177D78 #45177D
split-complementary
#7D171C #177D45 #174F7D
monochromatic
#1A0506 #490D10 #7D171C #B12128 #DA353D

Accessibility & contrast

On white

10.44
#7D171C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#7D171C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D171C
10.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D171C#FFFFFF#000000##FFFFFF
##7D171C1.0010.442.0110.44
#FFFFFF10.441.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37321B
Deuteranopia (green-blind)
#504718
Tritanopia (blue-blind)
#8A001A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7d171c;
/* rgb */ color: rgb(125, 23, 28);
/* oklch */ color: oklch(38.6% 0.136 24.2);
Tailwind
colors: {
  custom: {
    50: '#aa5f58',
    500: '#7d171c',
    950: '#000000',
  },
}
SCSS
$custom: #7d171c;
$custom-light: #aa5f58;
$custom-dark: #000000;
JSON
{
  "hex": "#7d171c",
  "rgb": {
    "r": 125,
    "g": 23,
    "b": 28
  },
  "hsl": {
    "h": 357.059,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3864,
    "c": 0.13621,
    "h": 24.2
  },
  "luminance": 0.05057
}

Semantic roles & 50–950 ramp

primary
#7D171C
secondary
#3EB2AC
accent
#ECE33C
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110503
muted
#807978

Preview Lab

Preview with #7D171C

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

Preview Lab → · Contrast checker → · Palette generator →

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