#7F162A#7F162A

#7F162A is a dark, vivid red. Relative luminance 0.053; OKLCH L 39.2% C 0.138 H 16.6°. Best body text is #FFFFFF at 10.24:1 contrast (WCAG AA passes).

Color values

HEX#7F162A
RGBrgb(127, 22, 42)
HSLhsl(349, 70%, 29%)
HSVhsv(349, 83%, 50%)
CMYKcmyk(0%, 82.7%, 66.9%, 50.2%)
CIE-LABlab(27.45, 44.43, 16.54)
CIE-LCHlch(27.45, 47.41, 20.42°)
OKLaboklab(39.2% 0.1325 0.0396)
OKLCHoklch(39.2% 0.138 16.6)
XYZxyz(9.4583, 5.2545, 2.7062)
Luminance0.0525 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F162A #167F6B
analogous
#7F165F #7F162A #7F3616
triadic
#7F162A #2A7F16 #162A7F
tetradic
#7F162A #5F7F16 #167F6B #36167F
square
#7F162A #5F7F16 #167F6B #36167F
split-complementary
#7F162A #167F36 #165F7F
monochromatic
#1A0509 #4B0D19 #7F162A #B31F3B #DC3454

Accessibility & contrast

On white

10.24
#7F162A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#7F162A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F162A
10.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F162A#FFFFFF#000000##FFFFFF
##7F162A1.0010.242.0510.24
#FFFFFF10.241.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35332A
Deuteranopia (green-blind)
#504927
Tritanopia (blue-blind)
#8C001F
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f162a;
/* rgb */ color: rgb(127, 22, 42);
/* oklch */ color: oklch(39.2% 0.138 16.6);
Tailwind
colors: {
  custom: {
    50: '#ab5f63',
    500: '#7f162a',
    950: '#000000',
  },
}
SCSS
$custom: #7f162a;
$custom-light: #ab5f63;
$custom-dark: #000000;
JSON
{
  "hex": "#7f162a",
  "rgb": {
    "r": 127,
    "g": 22,
    "b": 42
  },
  "hsl": {
    "h": 348.571,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.39196,
    "c": 0.13832,
    "h": 16.6
  },
  "luminance": 0.05253
}

Semantic roles & 50–950 ramp

primary
#7F162A
secondary
#3DB49D
accent
#EDCB3B
background
#FBF5F5
surface
#F6EAEA
border
#D0C6C6
text
#110505
muted
#807979

Preview Lab

Preview with #7F162A

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

Preview Lab → · Contrast checker → · Palette generator →

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