#7A172A#7A172A

#7A172A is a dark, vivid red. Relative luminance 0.049; OKLCH L 38.3% C 0.132 H 16.0°. Best body text is #FFFFFF at 10.59:1 contrast (WCAG AA passes).

Color values

HEX#7A172A
RGBrgb(122, 23, 42)
HSLhsl(348, 68%, 28%)
HSVhsv(348, 81%, 48%)
CMYKcmyk(0%, 81.1%, 65.6%, 52.2%)
CIE-LABlab(26.50, 42.58, 15.11)
CIE-LCHlch(26.50, 45.18, 19.54°)
OKLaboklab(38.31% 0.1273 0.0365)
OKLCHoklch(38.31% 0.132 16)
XYZxyz(8.7513, 4.9189, 2.6787)
Luminance0.0492 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A172A #177A67
analogous
#7A175B #7A172A #7A3517
triadic
#7A172A #2A7A17 #172A7A
tetradic
#7A172A #5B7A17 #177A67 #35177A
square
#7A172A #5B7A17 #177A67 #35177A
split-complementary
#7A172A #177A35 #175B7A
monochromatic
#1A0509 #470D18 #7A172A #AD213C #D93353

Accessibility & contrast

On white

10.59
#7A172A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#7A172A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A172A
10.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A172A#FFFFFF#000000##FFFFFF
##7A172A1.0010.591.9810.59
#FFFFFF10.591.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a172a;
/* rgb */ color: rgb(122, 23, 42);
/* oklch */ color: oklch(38.3% 0.132 16.0);
Tailwind
colors: {
  custom: {
    50: '#a75f63',
    500: '#7a172a',
    950: '#000000',
  },
}
SCSS
$custom: #7a172a;
$custom-light: #a75f63;
$custom-dark: #000000;
JSON
{
  "hex": "#7a172a",
  "rgb": {
    "r": 122,
    "g": 23,
    "b": 42
  },
  "hsl": {
    "h": 348.485,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.38309,
    "c": 0.13244,
    "h": 16
  },
  "luminance": 0.04918
}

Semantic roles & 50–950 ramp

primary
#7A172A
secondary
#3EAF99
accent
#EBCA3D
background
#FBF5F5
surface
#F6EAEA
border
#D0C6C6
text
#110505
muted
#807979

Preview Lab

Preview with #7A172A

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

Preview Lab → · Contrast checker → · Palette generator →

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