#7F161F#7F161F

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

Color values

HEX#7F161F
RGBrgb(127, 22, 31)
HSLhsl(355, 70%, 29%)
HSVhsv(355, 83%, 50%)
CMYKcmyk(0%, 82.7%, 75.6%, 50.2%)
CIE-LABlab(27.26, 43.84, 23.56)
CIE-LCHlch(27.26, 49.77, 28.25°)
OKLaboklab(39% 0.1281 0.0535)
OKLCHoklch(39% 0.139 22.7)
XYZxyz(9.2877, 5.1862, 1.8081)
Luminance0.0519 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F161F #167F76
analogous
#7F1654 #7F161F #7F4216
triadic
#7F161F #1F7F16 #161F7F
tetradic
#7F161F #547F16 #167F76 #42167F
square
#7F161F #547F16 #167F76 #42167F
split-complementary
#7F161F #167F42 #16547F
monochromatic
#1A0506 #4B0D12 #7F161F #B31F2C #DC3442

Accessibility & contrast

On white

10.31
#7F161F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#7F161F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F161F
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F161F#FFFFFF#000000##FFFFFF
##7F161F1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37321E
Deuteranopia (green-blind)
#51481B
Tritanopia (blue-blind)
#8C001B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7f161f;
/* rgb */ color: rgb(127, 22, 31);
/* oklch */ color: oklch(39.0% 0.139 22.7);
Tailwind
colors: {
  custom: {
    50: '#ac5f5a',
    500: '#7f161f',
    950: '#000000',
  },
}
SCSS
$custom: #7f161f;
$custom-light: #ac5f5a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f161f",
  "rgb": {
    "r": 127,
    "g": 22,
    "b": 31
  },
  "hsl": {
    "h": 354.857,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.38996,
    "c": 0.13876,
    "h": 22.7
  },
  "luminance": 0.05185
}

Semantic roles & 50–950 ramp

primary
#7F161F
secondary
#3DB4AA
accent
#EDDE3B
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#120504
muted
#817979

Preview Lab

Preview with #7F161F

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

Preview Lab → · Contrast checker → · Palette generator →

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