#7F161B#7F161B

#7F161B is a dark, vivid red. Relative luminance 0.052; OKLCH L 38.9% C 0.139 H 24.6°. Best body text is #FFFFFF at 10.33:1 contrast (WCAG AA passes).

Color values

HEX#7F161B
RGBrgb(127, 22, 27)
HSLhsl(357, 70%, 29%)
HSVhsv(357, 83%, 50%)
CMYKcmyk(0%, 82.7%, 78.7%, 50.2%)
CIE-LABlab(27.20, 43.67, 26.04)
CIE-LCHlch(27.20, 50.84, 30.81°)
OKLaboklab(38.94% 0.1265 0.0579)
OKLCHoklch(38.94% 0.139 24.6)
XYZxyz(9.2382, 5.1665, 1.5475)
Luminance0.0517 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F161B #167F7A
analogous
#7F1650 #7F161B #7F4616
triadic
#7F161B #1B7F16 #161B7F
tetradic
#7F161B #507F16 #167F7A #46167F
square
#7F161B #507F16 #167F7A #46167F
split-complementary
#7F161B #167F46 #16507F
monochromatic
#1A0506 #4B0D10 #7F161B #B31F26 #DC343C

Accessibility & contrast

On white

10.33
#7F161B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#7F161B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F161B
10.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F161B#FFFFFF#000000##FFFFFF
##7F161B1.0010.332.0310.33
#FFFFFF10.331.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37321A
Deuteranopia (green-blind)
#514817
Tritanopia (blue-blind)
#8C0019
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7f161b;
/* rgb */ color: rgb(127, 22, 27);
/* oklch */ color: oklch(38.9% 0.139 24.6);
Tailwind
colors: {
  custom: {
    50: '#ac5f57',
    500: '#7f161b',
    950: '#000000',
  },
}
SCSS
$custom: #7f161b;
$custom-light: #ac5f57;
$custom-dark: #000000;
JSON
{
  "hex": "#7f161b",
  "rgb": {
    "r": 127,
    "g": 22,
    "b": 27
  },
  "hsl": {
    "h": 357.143,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.38937,
    "c": 0.13914,
    "h": 24.6
  },
  "luminance": 0.05165
}

Semantic roles & 50–950 ramp

primary
#7F161B
secondary
#3DB4AE
accent
#EDE53B
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#120503
muted
#817978

Preview Lab

Preview with #7F161B

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

Preview Lab → · Contrast checker → · Palette generator →

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