#7F162F#7F162F

#7F162F is a dark, vivid red. Relative luminance 0.053; OKLCH L 39.3% C 0.139 H 13.6°. Best body text is #FFFFFF at 10.20:1 contrast (WCAG AA passes).

Color values

HEX#7F162F
RGBrgb(127, 22, 47)
HSLhsl(346, 70%, 29%)
HSVhsv(346, 83%, 50%)
CMYKcmyk(0%, 82.7%, 63%, 50.2%)
CIE-LABlab(27.55, 44.75, 13.32)
CIE-LCHlch(27.55, 46.69, 16.58°)
OKLaboklab(39.31% 0.1346 0.0327)
OKLCHoklch(39.31% 0.139 13.6)
XYZxyz(9.5534, 5.2925, 3.2073)
Luminance0.0529 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F162F #167F66
analogous
#7F1664 #7F162F #7F3116
triadic
#7F162F #2F7F16 #162F7F
tetradic
#7F162F #647F16 #167F66 #31167F
square
#7F162F #647F16 #167F66 #31167F
split-complementary
#7F162F #167F31 #16647F
monochromatic
#1A050A #4B0D1C #7F162F #B31F42 #DC345C

Accessibility & contrast

On white

10.20
#7F162F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.06
#7F162F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F162F
10.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F162F#FFFFFF#000000##FFFFFF
##7F162F1.0010.202.0610.20
#FFFFFF10.201.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#34332F
Deuteranopia (green-blind)
#4F492C
Tritanopia (blue-blind)
#8C0021
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f162f;
/* rgb */ color: rgb(127, 22, 47);
/* oklch */ color: oklch(39.3% 0.139 13.6);
Tailwind
colors: {
  custom: {
    50: '#ab5f67',
    500: '#7f162f',
    950: '#000000',
  },
}
SCSS
$custom: #7f162f;
$custom-light: #ab5f67;
$custom-dark: #000000;
JSON
{
  "hex": "#7f162f",
  "rgb": {
    "r": 127,
    "g": 22,
    "b": 47
  },
  "hsl": {
    "h": 345.714,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.39307,
    "c": 0.13852,
    "h": 13.6
  },
  "luminance": 0.05291
}

Semantic roles & 50–950 ramp

primary
#7F162F
secondary
#3DB498
accent
#EDC33B
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110506
muted
#80797A

Preview Lab

Preview with #7F162F

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

Preview Lab → · Contrast checker → · Palette generator →

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