#7F161C#7F161C

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

Color values

HEX#7F161C
RGBrgb(127, 22, 28)
HSLhsl(357, 70%, 29%)
HSVhsv(357, 83%, 50%)
CMYKcmyk(0%, 82.7%, 78%, 50.2%)
CIE-LABlab(27.22, 43.71, 25.43)
CIE-LCHlch(27.22, 50.57, 30.19°)
OKLaboklab(38.95% 0.1269 0.0568)
OKLCHoklch(38.95% 0.139 24.1)
XYZxyz(9.2500, 5.1712, 1.6095)
Luminance0.0517 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F161C #167F79
analogous
#7F1651 #7F161C #7F4416
triadic
#7F161C #1C7F16 #161C7F
tetradic
#7F161C #517F16 #167F79 #44167F
square
#7F161C #517F16 #167F79 #44167F
split-complementary
#7F161C #167F44 #16517F
monochromatic
#1A0506 #4B0D10 #7F161C #B31F28 #DC343D

Accessibility & contrast

On white

10.32
#7F161C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F161C
10.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F161C#FFFFFF#000000##FFFFFF
##7F161C1.0010.322.0310.32
#FFFFFF10.321.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37321B
Deuteranopia (green-blind)
#514818
Tritanopia (blue-blind)
#8C001A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7f161c;
/* rgb */ color: rgb(127, 22, 28);
/* oklch */ color: oklch(39.0% 0.139 24.1);
Tailwind
colors: {
  custom: {
    50: '#ac5f58',
    500: '#7f161c',
    950: '#000000',
  },
}
SCSS
$custom: #7f161c;
$custom-light: #ac5f58;
$custom-dark: #000000;
JSON
{
  "hex": "#7f161c",
  "rgb": {
    "r": 127,
    "g": 22,
    "b": 28
  },
  "hsl": {
    "h": 356.571,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.38951,
    "c": 0.13904,
    "h": 24.1
  },
  "luminance": 0.0517
}

Semantic roles & 50–950 ramp

primary
#7F161C
secondary
#3DB4AD
accent
#EDE33B
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#120503
muted
#817978

Preview Lab

Preview with #7F161C

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

Preview Lab → · Contrast checker → · Palette generator →

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