#7F161E#7F161E

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

Color values

HEX#7F161E
RGBrgb(127, 22, 30)
HSLhsl(355, 70%, 29%)
HSVhsv(355, 83%, 50%)
CMYKcmyk(0%, 82.7%, 76.4%, 50.2%)
CIE-LABlab(27.24, 43.79, 24.19)
CIE-LCHlch(27.24, 50.03, 28.91°)
OKLaboklab(38.98% 0.1277 0.0546)
OKLCHoklch(38.98% 0.139 23.2)
XYZxyz(9.2747, 5.1811, 1.7397)
Luminance0.0518 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F161E #167F77
analogous
#7F1653 #7F161E #7F4316
triadic
#7F161E #1E7F16 #161E7F
tetradic
#7F161E #537F16 #167F77 #43167F
square
#7F161E #537F16 #167F77 #43167F
split-complementary
#7F161E #167F43 #16537F
monochromatic
#1A0506 #4B0D12 #7F161E #B31F2A #DC3440

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F161E#FFFFFF#000000##FFFFFF
##7F161E1.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)
#37321D
Deuteranopia (green-blind)
#51481A
Tritanopia (blue-blind)
#8C001A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7f161e;
/* rgb */ color: rgb(127, 22, 30);
/* oklch */ color: oklch(39.0% 0.139 23.2);
Tailwind
colors: {
  custom: {
    50: '#ac5f5a',
    500: '#7f161e',
    950: '#000000',
  },
}
SCSS
$custom: #7f161e;
$custom-light: #ac5f5a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f161e",
  "rgb": {
    "r": 127,
    "g": 22,
    "b": 30
  },
  "hsl": {
    "h": 355.429,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.3898,
    "c": 0.13885,
    "h": 23.2
  },
  "luminance": 0.0518
}

Semantic roles & 50–950 ramp

primary
#7F161E
secondary
#3DB4AB
accent
#EDE03B
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#120503
muted
#817978

Preview Lab

Preview with #7F161E

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

Preview Lab → · Contrast checker → · Palette generator →

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