#7C172F#7C172F

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

Color values

HEX#7C172F
RGBrgb(124, 23, 47)
HSLhsl(346, 69%, 29%)
HSVhsv(346, 81%, 49%)
CMYKcmyk(0%, 81.5%, 62.1%, 51.4%)
CIE-LABlab(27.03, 43.53, 12.51)
CIE-LCHlch(27.03, 45.30, 16.04°)
OKLaboklab(38.81% 0.1311 0.0308)
OKLCHoklch(38.81% 0.135 13.2)
XYZxyz(9.1326, 5.1045, 3.1932)
Luminance0.0510 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C172F #177C64
analogous
#7C1762 #7C172F #7C3217
triadic
#7C172F #2F7C17 #172F7C
tetradic
#7C172F #627C17 #177C64 #32177C
square
#7C172F #627C17 #177C64 #32177C
split-complementary
#7C172F #177C32 #17627C
monochromatic
#1A050A #480D1B #7C172F #B02143 #D9345B

Accessibility & contrast

On white

10.39
#7C172F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#7C172F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C172F
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C172F#FFFFFF#000000##FFFFFF
##7C172F1.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c172f;
/* rgb */ color: rgb(124, 23, 47);
/* oklch */ color: oklch(38.8% 0.135 13.2);
Tailwind
colors: {
  custom: {
    50: '#a85f67',
    500: '#7c172f',
    950: '#000000',
  },
}
SCSS
$custom: #7c172f;
$custom-light: #a85f67;
$custom-dark: #000000;
JSON
{
  "hex": "#7c172f",
  "rgb": {
    "r": 124,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 345.743,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.38809,
    "c": 0.1347,
    "h": 13.2
  },
  "luminance": 0.05103
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C172F

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

Preview Lab → · Contrast checker → · Palette generator →

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