#7F171F#7F171F

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

Color values

HEX#7F171F
RGBrgb(127, 23, 31)
HSLhsl(355, 69%, 29%)
HSVhsv(355, 82%, 50%)
CMYKcmyk(0%, 81.9%, 75.6%, 50.2%)
CIE-LABlab(27.37, 43.53, 23.68)
CIE-LCHlch(27.37, 49.56, 28.55°)
OKLaboklab(39.08% 0.1271 0.0537)
OKLCHoklch(39.08% 0.138 22.9)
XYZxyz(9.3072, 5.2252, 1.8146)
Luminance0.0522 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F171F #177F77
analogous
#7F1753 #7F171F #7F4317
triadic
#7F171F #1F7F17 #171F7F
tetradic
#7F171F #537F17 #177F77 #43177F
square
#7F171F #537F17 #177F77 #43177F
split-complementary
#7F171F #177F43 #17537F
monochromatic
#1A0506 #4B0E12 #7F171F #B3202C #DB3643

Accessibility & contrast

On white

10.27
#7F171F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F171F
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F171F#FFFFFF#000000##FFFFFF
##7F171F1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37321E
Deuteranopia (green-blind)
#51491B
Tritanopia (blue-blind)
#8C001B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f171f;
/* rgb */ color: rgb(127, 23, 31);
/* oklch */ color: oklch(39.1% 0.138 22.9);
Tailwind
colors: {
  custom: {
    50: '#ac5f5a',
    500: '#7f171f',
    950: '#000000',
  },
}
SCSS
$custom: #7f171f;
$custom-light: #ac5f5a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f171f",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 31
  },
  "hsl": {
    "h": 355.385,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.39076,
    "c": 0.13798,
    "h": 22.9
  },
  "luminance": 0.05224
}

Semantic roles & 50–950 ramp

primary
#7F171F
secondary
#3EB4AB
accent
#ECDF3C
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#120504
muted
#817979

Preview Lab

Preview with #7F171F

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

Preview Lab → · Contrast checker → · Palette generator →

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