#7C171C#7C171C

#7C171C is a dark, vivid red. Relative luminance 0.050; OKLCH L 38.4% C 0.135 H 24.2°. Best body text is #FFFFFF at 10.52:1 contrast (WCAG AA passes).

Color values

HEX#7C171C
RGBrgb(124, 23, 28)
HSLhsl(357, 69%, 29%)
HSVhsv(357, 81%, 49%)
CMYKcmyk(0%, 81.5%, 77.4%, 51.4%)
CIE-LABlab(26.69, 42.45, 24.66)
CIE-LCHlch(26.69, 49.09, 30.15°)
OKLaboklab(38.44% 0.1233 0.0553)
OKLCHoklch(38.44% 0.135 24.2)
XYZxyz(8.8292, 4.9831, 1.5953)
Luminance0.0498 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C171C #177C77
analogous
#7C174F #7C171C #7C4517
triadic
#7C171C #1C7C17 #171C7C
tetradic
#7C171C #4F7C17 #177C77 #45177C
square
#7C171C #4F7C17 #177C77 #45177C
split-complementary
#7C171C #177C45 #174F7C
monochromatic
#1A0506 #480D10 #7C171C #B02128 #D9343C

Accessibility & contrast

On white

10.52
#7C171C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C171C
10.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C171C#FFFFFF#000000##FFFFFF
##7C171C1.0010.522.0010.52
#FFFFFF10.521.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#36311B
Deuteranopia (green-blind)
#4F4718
Tritanopia (blue-blind)
#89001A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #7c171c;
/* rgb */ color: rgb(124, 23, 28);
/* oklch */ color: oklch(38.4% 0.135 24.2);
Tailwind
colors: {
  custom: {
    50: '#aa5f58',
    500: '#7c171c',
    950: '#000000',
  },
}
SCSS
$custom: #7c171c;
$custom-light: #aa5f58;
$custom-dark: #000000;
JSON
{
  "hex": "#7c171c",
  "rgb": {
    "r": 124,
    "g": 23,
    "b": 28
  },
  "hsl": {
    "h": 357.03,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.38444,
    "c": 0.13518,
    "h": 24.2
  },
  "luminance": 0.04982
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C171C

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

Preview Lab → · Contrast checker → · Palette generator →

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