#7F162D#7F162D

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

Color values

HEX#7F162D
RGBrgb(127, 22, 45)
HSLhsl(347, 70%, 29%)
HSVhsv(347, 83%, 50%)
CMYKcmyk(0%, 82.7%, 64.6%, 50.2%)
CIE-LABlab(27.51, 44.62, 14.61)
CIE-LCHlch(27.51, 46.95, 18.13°)
OKLaboklab(39.26% 0.1338 0.0355)
OKLCHoklch(39.26% 0.138 14.9)
XYZxyz(9.5140, 5.2767, 2.9997)
Luminance0.0527 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F162D #167F68
analogous
#7F1662 #7F162D #7F3416
triadic
#7F162D #2D7F16 #162D7F
tetradic
#7F162D #627F16 #167F68 #34167F
square
#7F162D #627F16 #167F68 #34167F
split-complementary
#7F162D #167F34 #16627F
monochromatic
#1A0509 #4B0D1B #7F162D #B31F3F #DC3458

Accessibility & contrast

On white

10.22
#7F162D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F162D
10.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F162D#FFFFFF#000000##FFFFFF
##7F162D1.0010.222.0610.22
#FFFFFF10.221.0021.001.00
#0000002.0621.001.0021.00
##FFFFFF10.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f162d;
/* rgb */ color: rgb(127, 22, 45);
/* oklch */ color: oklch(39.3% 0.138 14.9);
Tailwind
colors: {
  custom: {
    50: '#ab5f65',
    500: '#7f162d',
    950: '#000000',
  },
}
SCSS
$custom: #7f162d;
$custom-light: #ab5f65;
$custom-dark: #000000;
JSON
{
  "hex": "#7f162d",
  "rgb": {
    "r": 127,
    "g": 22,
    "b": 45
  },
  "hsl": {
    "h": 346.857,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.39261,
    "c": 0.1384,
    "h": 14.9
  },
  "luminance": 0.05275
}

Semantic roles & 50–950 ramp

primary
#7F162D
secondary
#3DB49A
accent
#EDC63B
background
#FBF5F6
surface
#F6EAEB
border
#D0C6C6
text
#110505
muted
#80797A

Preview Lab

Preview with #7F162D

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

Preview Lab → · Contrast checker → · Palette generator →

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