#7A171E#7A171E

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

Color values

HEX#7A171E
RGBrgb(122, 23, 30)
HSLhsl(356, 68%, 28%)
HSVhsv(356, 81%, 48%)
CMYKcmyk(0%, 81.1%, 75.4%, 52.2%)
CIE-LABlab(26.29, 41.90, 22.81)
CIE-LCHlch(26.29, 47.71, 28.56°)
OKLaboklab(38.08% 0.1224 0.0519)
OKLCHoklch(38.08% 0.133 23)
XYZxyz(8.5678, 4.8455, 1.7122)
Luminance0.0484 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A171E #177A73
analogous
#7A174F #7A171E #7A4117
triadic
#7A171E #1E7A17 #171E7A
tetradic
#7A171E #4F7A17 #177A73 #41177A
square
#7A171E #4F7A17 #177A73 #41177A
split-complementary
#7A171E #177A41 #174F7A
monochromatic
#1A0506 #470D11 #7A171E #AD212B #D9333F

Accessibility & contrast

On white

10.67
#7A171E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A171E
10.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A171E#FFFFFF#000000##FFFFFF
##7A171E1.0010.671.9710.67
#FFFFFF10.671.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7a171e;
/* rgb */ color: rgb(122, 23, 30);
/* oklch */ color: oklch(38.1% 0.133 23.0);
Tailwind
colors: {
  custom: {
    50: '#a85e59',
    500: '#7a171e',
    950: '#000000',
  },
}
SCSS
$custom: #7a171e;
$custom-light: #a85e59;
$custom-dark: #000000;
JSON
{
  "hex": "#7a171e",
  "rgb": {
    "r": 122,
    "g": 23,
    "b": 30
  },
  "hsl": {
    "h": 355.758,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.38083,
    "c": 0.13291,
    "h": 23
  },
  "luminance": 0.04844
}

Semantic roles & 50–950 ramp

primary
#7A171E
secondary
#3EAFA7
accent
#EBDF3D
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#110503
muted
#807978

Preview Lab

Preview with #7A171E

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

Preview Lab → · Contrast checker → · Palette generator →

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