#7F171A#7F171A

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

Color values

HEX#7F171A
RGBrgb(127, 23, 26)
HSLhsl(358, 69%, 29%)
HSVhsv(358, 82%, 50%)
CMYKcmyk(0%, 81.9%, 79.5%, 50.2%)
CIE-LABlab(27.30, 43.32, 26.77)
CIE-LCHlch(27.30, 50.93, 31.72°)
OKLaboklab(39% 0.1252 0.0592)
OKLCHoklch(39% 0.138 25.3)
XYZxyz(9.2464, 5.2009, 1.4941)
Luminance0.0520 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F171A #177F7C
analogous
#7F174E #7F171A #7F4817
triadic
#7F171A #1A7F17 #171A7F
tetradic
#7F171A #4E7F17 #177F7C #48177F
square
#7F171A #4E7F17 #177F7C #48177F
split-complementary
#7F171A #177F48 #174E7F
monochromatic
#1A0505 #4B0E0F #7F171A #B32025 #DB363B

Accessibility & contrast

On white

10.30
#7F171A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F171A
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F171A#FFFFFF#000000##FFFFFF
##7F171A1.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#383219
Deuteranopia (green-blind)
#514816
Tritanopia (blue-blind)
#8C001A
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7f171a;
/* rgb */ color: rgb(127, 23, 26);
/* oklch */ color: oklch(39.0% 0.138 25.3);
Tailwind
colors: {
  custom: {
    50: '#ac5f57',
    500: '#7f171a',
    950: '#000000',
  },
}
SCSS
$custom: #7f171a;
$custom-light: #ac5f57;
$custom-dark: #000000;
JSON
{
  "hex": "#7f171a",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 26
  },
  "hsl": {
    "h": 358.269,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.39004,
    "c": 0.13849,
    "h": 25.3
  },
  "luminance": 0.05199
}

Semantic roles & 50–950 ramp

primary
#7F171A
secondary
#3EB4B0
accent
#ECE73C
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#120503
muted
#817978

Preview Lab

Preview with #7F171A

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

Preview Lab → · Contrast checker → · Palette generator →

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