#7F171D#7F171D

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

Color values

HEX#7F171D
RGBrgb(127, 23, 29)
HSLhsl(357, 69%, 29%)
HSVhsv(357, 82%, 50%)
CMYKcmyk(0%, 81.9%, 77.2%, 50.2%)
CIE-LABlab(27.34, 43.45, 24.93)
CIE-LCHlch(27.34, 50.09, 29.85°)
OKLaboklab(39.05% 0.1263 0.056)
OKLCHoklch(39.05% 0.138 23.9)
XYZxyz(9.2817, 5.2150, 1.6800)
Luminance0.0521 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F171D #177F79
analogous
#7F1751 #7F171D #7F4517
triadic
#7F171D #1D7F17 #171D7F
tetradic
#7F171D #517F17 #177F79 #45177F
square
#7F171D #517F17 #177F79 #45177F
split-complementary
#7F171D #177F45 #17517F
monochromatic
#1A0506 #4B0E11 #7F171D #B32029 #DB363F

Accessibility & contrast

On white

10.28
#7F171D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F171D
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F171D#FFFFFF#000000##FFFFFF
##7F171D1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#37321C
Deuteranopia (green-blind)
#514919
Tritanopia (blue-blind)
#8C001B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f171d;
/* rgb */ color: rgb(127, 23, 29);
/* oklch */ color: oklch(39.0% 0.138 23.9);
Tailwind
colors: {
  custom: {
    50: '#ac5f59',
    500: '#7f171d',
    950: '#000000',
  },
}
SCSS
$custom: #7f171d;
$custom-light: #ac5f59;
$custom-dark: #000000;
JSON
{
  "hex": "#7f171d",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 29
  },
  "hsl": {
    "h": 356.538,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.39046,
    "c": 0.13816,
    "h": 23.9
  },
  "luminance": 0.05214
}

Semantic roles & 50–950 ramp

primary
#7F171D
secondary
#3EB4AD
accent
#ECE23C
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#120503
muted
#817978

Preview Lab

Preview with #7F171D

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

Preview Lab → · Contrast checker → · Palette generator →

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