#7C172E#7C172E

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

Color values

HEX#7C172E
RGBrgb(124, 23, 46)
HSLhsl(346, 69%, 29%)
HSVhsv(346, 81%, 49%)
CMYKcmyk(0%, 81.5%, 62.9%, 51.4%)
CIE-LABlab(27.01, 43.47, 13.16)
CIE-LCHlch(27.01, 45.41, 16.84°)
OKLaboklab(38.78% 0.1307 0.0323)
OKLCHoklch(38.78% 0.135 13.9)
XYZxyz(9.1127, 5.0965, 3.0881)
Luminance0.0510 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C172E #177C65
analogous
#7C1761 #7C172E #7C3317
triadic
#7C172E #2E7C17 #172E7C
tetradic
#7C172E #617C17 #177C65 #33177C
square
#7C172E #617C17 #177C65 #33177C
split-complementary
#7C172E #177C33 #17617C
monochromatic
#1A050A #480D1B #7C172E #B02141 #D9345A

Accessibility & contrast

On white

10.40
#7C172E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C172E
10.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C172E#FFFFFF#000000##FFFFFF
##7C172E1.0010.402.0210.40
#FFFFFF10.401.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c172e;
/* rgb */ color: rgb(124, 23, 46);
/* oklch */ color: oklch(38.8% 0.135 13.9);
Tailwind
colors: {
  custom: {
    50: '#a85f66',
    500: '#7c172e',
    950: '#000000',
  },
}
SCSS
$custom: #7c172e;
$custom-light: #a85f66;
$custom-dark: #000000;
JSON
{
  "hex": "#7c172e",
  "rgb": {
    "r": 124,
    "g": 23,
    "b": 46
  },
  "hsl": {
    "h": 346.337,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.38785,
    "c": 0.13463,
    "h": 13.9
  },
  "luminance": 0.05095
}

Semantic roles & 50–950 ramp

primary
#7C172E
secondary
#3EB197
accent
#ECC43C
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110505
muted
#80797A

Preview Lab

Preview with #7C172E

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

Preview Lab → · Contrast checker → · Palette generator →

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