#7B172A#7B172A

#7B172A is a dark, vivid red. Relative luminance 0.050; OKLCH L 38.5% C 0.133 H 16.2°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#7B172A
RGBrgb(123, 23, 42)
HSLhsl(349, 68%, 29%)
HSVhsv(349, 81%, 48%)
CMYKcmyk(0%, 81.3%, 65.9%, 51.8%)
CIE-LABlab(26.71, 42.89, 15.43)
CIE-LCHlch(26.71, 45.58, 19.78°)
OKLaboklab(38.5% 0.1282 0.0372)
OKLCHoklch(38.5% 0.133 16.2)
XYZxyz(8.8936, 4.9923, 2.6853)
Luminance0.0499 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B172A #177B68
analogous
#7B175C #7B172A #7B3617
triadic
#7B172A #2A7B17 #172A7B
tetradic
#7B172A #5C7B17 #177B68 #36177B
square
#7B172A #5C7B17 #177B68 #36177B
split-complementary
#7B172A #177B36 #175C7B
monochromatic
#1A0509 #470D18 #7B172A #AF213C #D93353

Accessibility & contrast

On white

10.51
#7B172A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B172A
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B172A#FFFFFF#000000##FFFFFF
##7B172A1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34322A
Deuteranopia (green-blind)
#4D4727
Tritanopia (blue-blind)
#87001F
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #7b172a;
/* rgb */ color: rgb(123, 23, 42);
/* oklch */ color: oklch(38.5% 0.133 16.2);
Tailwind
colors: {
  custom: {
    50: '#a85f63',
    500: '#7b172a',
    950: '#000000',
  },
}
SCSS
$custom: #7b172a;
$custom-light: #a85f63;
$custom-dark: #000000;
JSON
{
  "hex": "#7b172a",
  "rgb": {
    "r": 123,
    "g": 23,
    "b": 42
  },
  "hsl": {
    "h": 348.6,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.38502,
    "c": 0.13345,
    "h": 16.2
  },
  "luminance": 0.04991
}

Semantic roles & 50–950 ramp

primary
#7B172A
secondary
#3EB09A
accent
#EBCA3C
background
#FBF5F5
surface
#F6EAEA
border
#D0C6C6
text
#110505
muted
#807979

Preview Lab

Preview with #7B172A

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

Preview Lab → · Contrast checker → · Palette generator →

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