#7C172D#7C172D

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

Color values

HEX#7C172D
RGBrgb(124, 23, 45)
HSLhsl(347, 69%, 29%)
HSVhsv(347, 81%, 49%)
CMYKcmyk(0%, 81.5%, 63.7%, 51.4%)
CIE-LABlab(26.99, 43.40, 13.80)
CIE-LCHlch(26.99, 45.54, 17.65°)
OKLaboklab(38.76% 0.1303 0.0337)
OKLCHoklch(38.76% 0.135 14.5)
XYZxyz(9.0932, 5.0887, 2.9855)
Luminance0.0509 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C172D #177C66
analogous
#7C1760 #7C172D #7C3417
triadic
#7C172D #2D7C17 #172D7C
tetradic
#7C172D #607C17 #177C66 #34177C
square
#7C172D #607C17 #177C66 #34177C
split-complementary
#7C172D #177C34 #17607C
monochromatic
#1A0509 #480D1A #7C172D #B02140 #D93458

Accessibility & contrast

On white

10.41
#7C172D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C172D
10.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C172D#FFFFFF#000000##FFFFFF
##7C172D1.0010.412.0210.41
#FFFFFF10.411.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34322D
Deuteranopia (green-blind)
#4E472A
Tritanopia (blue-blind)
#880021
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7c172d;
/* rgb */ color: rgb(124, 23, 45);
/* oklch */ color: oklch(38.8% 0.135 14.5);
Tailwind
colors: {
  custom: {
    50: '#a85f65',
    500: '#7c172d',
    950: '#000000',
  },
}
SCSS
$custom: #7c172d;
$custom-light: #a85f65;
$custom-dark: #000000;
JSON
{
  "hex": "#7c172d",
  "rgb": {
    "r": 124,
    "g": 23,
    "b": 45
  },
  "hsl": {
    "h": 346.931,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.38762,
    "c": 0.13457,
    "h": 14.5
  },
  "luminance": 0.05087
}

Semantic roles & 50–950 ramp

primary
#7C172D
secondary
#3EB198
accent
#ECC53C
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110505
muted
#80797A

Preview Lab

Preview with #7C172D

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

Preview Lab → · Contrast checker → · Palette generator →

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