#7F162C#7F162C

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

Color values

HEX#7F162C
RGBrgb(127, 22, 44)
HSLhsl(347, 70%, 29%)
HSVhsv(347, 83%, 50%)
CMYKcmyk(0%, 82.7%, 65.4%, 50.2%)
CIE-LABlab(27.49, 44.55, 15.26)
CIE-LCHlch(27.49, 47.09, 18.90°)
OKLaboklab(39.24% 0.1334 0.0369)
OKLCHoklch(39.24% 0.138 15.5)
XYZxyz(9.4949, 5.2691, 2.8995)
Luminance0.0527 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F162C #167F69
analogous
#7F1661 #7F162C #7F3516
triadic
#7F162C #2C7F16 #162C7F
tetradic
#7F162C #617F16 #167F69 #35167F
square
#7F162C #617F16 #167F69 #35167F
split-complementary
#7F162C #167F35 #16617F
monochromatic
#1A0509 #4B0D1A #7F162C #B31F3E #DC3457

Accessibility & contrast

On white

10.23
#7F162C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F162C
10.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F162C#FFFFFF#000000##FFFFFF
##7F162C1.0010.232.0510.23
#FFFFFF10.231.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#35332C
Deuteranopia (green-blind)
#4F4929
Tritanopia (blue-blind)
#8C0020
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f162c;
/* rgb */ color: rgb(127, 22, 44);
/* oklch */ color: oklch(39.2% 0.138 15.5);
Tailwind
colors: {
  custom: {
    50: '#ab5f64',
    500: '#7f162c',
    950: '#000000',
  },
}
SCSS
$custom: #7f162c;
$custom-light: #ab5f64;
$custom-dark: #000000;
JSON
{
  "hex": "#7f162c",
  "rgb": {
    "r": 127,
    "g": 22,
    "b": 44
  },
  "hsl": {
    "h": 347.429,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.39239,
    "c": 0.13837,
    "h": 15.5
  },
  "luminance": 0.05268
}

Semantic roles & 50–950 ramp

primary
#7F162C
secondary
#3DB49B
accent
#EDC83B
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110505
muted
#80797A

Preview Lab

Preview with #7F162C

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

Preview Lab → · Contrast checker → · Palette generator →

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