#7A171F#7A171F

#7A171F is a dark, vivid red. Relative luminance 0.048; OKLCH L 38.1% C 0.133 H 22.5°. Best body text is #FFFFFF at 10.66:1 contrast (WCAG AA passes).

Color values

HEX#7A171F
RGBrgb(122, 23, 31)
HSLhsl(355, 68%, 28%)
HSVhsv(355, 81%, 48%)
CMYKcmyk(0%, 81.1%, 74.6%, 52.2%)
CIE-LABlab(26.30, 41.95, 22.18)
CIE-LCHlch(26.30, 47.45, 27.86°)
OKLaboklab(38.1% 0.1228 0.0507)
OKLCHoklch(38.1% 0.133 22.5)
XYZxyz(8.5807, 4.8506, 1.7805)
Luminance0.0485 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A171F #177A72
analogous
#7A1750 #7A171F #7A4017
triadic
#7A171F #1F7A17 #171F7A
tetradic
#7A171F #507A17 #177A72 #40177A
square
#7A171F #507A17 #177A72 #40177A
split-complementary
#7A171F #177A40 #17507A
monochromatic
#1A0507 #470D12 #7A171F #AD212C #D93340

Accessibility & contrast

On white

10.66
#7A171F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#7A171F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A171F
10.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A171F#FFFFFF#000000##FFFFFF
##7A171F1.0010.661.9710.66
#FFFFFF10.661.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35311E
Deuteranopia (green-blind)
#4E461C
Tritanopia (blue-blind)
#87001B
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #7a171f;
/* rgb */ color: rgb(122, 23, 31);
/* oklch */ color: oklch(38.1% 0.133 22.5);
Tailwind
colors: {
  custom: {
    50: '#a85e5a',
    500: '#7a171f',
    950: '#000000',
  },
}
SCSS
$custom: #7a171f;
$custom-light: #a85e5a;
$custom-dark: #000000;
JSON
{
  "hex": "#7a171f",
  "rgb": {
    "r": 122,
    "g": 23,
    "b": 31
  },
  "hsl": {
    "h": 355.152,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.38099,
    "c": 0.13282,
    "h": 22.5
  },
  "luminance": 0.04849
}

Semantic roles & 50–950 ramp

primary
#7A171F
secondary
#3EAFA6
accent
#EBDD3D
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110504
muted
#807979

Preview Lab

Preview with #7A171F

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

Preview Lab → · Contrast checker → · Palette generator →

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