#7F171B#7F171B

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

Color values

HEX#7F171B
RGBrgb(127, 23, 27)
HSLhsl(358, 69%, 29%)
HSVhsv(358, 82%, 50%)
CMYKcmyk(0%, 81.9%, 78.7%, 50.2%)
CIE-LABlab(27.31, 43.36, 26.16)
CIE-LCHlch(27.31, 50.64, 31.11°)
OKLaboklab(39.02% 0.1256 0.0581)
OKLCHoklch(39.02% 0.138 24.8)
XYZxyz(9.2577, 5.2054, 1.5540)
Luminance0.0520 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F171B #177F7B
analogous
#7F174F #7F171B #7F4717
triadic
#7F171B #1B7F17 #171B7F
tetradic
#7F171B #4F7F17 #177F7B #47177F
square
#7F171B #4F7F17 #177F7B #47177F
split-complementary
#7F171B #177F47 #174F7F
monochromatic
#1A0506 #4B0E10 #7F171B #B32026 #DB363C

Accessibility & contrast

On white

10.29
#7F171B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#7F171B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F171B
10.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F171B#FFFFFF#000000##FFFFFF
##7F171B1.0010.292.0410.29
#FFFFFF10.291.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#38321A
Deuteranopia (green-blind)
#514917
Tritanopia (blue-blind)
#8C001A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7f171b;
/* rgb */ color: rgb(127, 23, 27);
/* oklch */ color: oklch(39.0% 0.138 24.8);
Tailwind
colors: {
  custom: {
    50: '#ac5f57',
    500: '#7f171b',
    950: '#000000',
  },
}
SCSS
$custom: #7f171b;
$custom-light: #ac5f57;
$custom-dark: #000000;
JSON
{
  "hex": "#7f171b",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 27
  },
  "hsl": {
    "h": 357.692,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.39018,
    "c": 0.13838,
    "h": 24.8
  },
  "luminance": 0.05204
}

Semantic roles & 50–950 ramp

primary
#7F171B
secondary
#3EB4AF
accent
#ECE53C
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#120503
muted
#817978

Preview Lab

Preview with #7F171B

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

Preview Lab → · Contrast checker → · Palette generator →

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