#7F171E#7F171E

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

Color values

HEX#7F171E
RGBrgb(127, 23, 30)
HSLhsl(356, 69%, 29%)
HSVhsv(356, 82%, 50%)
CMYKcmyk(0%, 81.9%, 76.4%, 50.2%)
CIE-LABlab(27.35, 43.49, 24.31)
CIE-LCHlch(27.35, 49.82, 29.20°)
OKLaboklab(39.06% 0.1267 0.0549)
OKLCHoklch(39.06% 0.138 23.4)
XYZxyz(9.2942, 5.2200, 1.7462)
Luminance0.0522 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F171E #177F78
analogous
#7F1752 #7F171E #7F4417
triadic
#7F171E #1E7F17 #171E7F
tetradic
#7F171E #527F17 #177F78 #44177F
square
#7F171E #527F17 #177F78 #44177F
split-complementary
#7F171E #177F44 #17527F
monochromatic
#1A0506 #4B0E12 #7F171E #B3202A #DB3641

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F171E#FFFFFF#000000##FFFFFF
##7F171E1.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)
#37321D
Deuteranopia (green-blind)
#51491A
Tritanopia (blue-blind)
#8C001B
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #7f171e;
/* rgb */ color: rgb(127, 23, 30);
/* oklch */ color: oklch(39.1% 0.138 23.4);
Tailwind
colors: {
  custom: {
    50: '#ac5f5a',
    500: '#7f171e',
    950: '#000000',
  },
}
SCSS
$custom: #7f171e;
$custom-light: #ac5f5a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f171e",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 30
  },
  "hsl": {
    "h": 355.962,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3906,
    "c": 0.13806,
    "h": 23.4
  },
  "luminance": 0.05219
}

Semantic roles & 50–950 ramp

primary
#7F171E
secondary
#3EB4AC
accent
#ECE03C
background
#FBF5F5
surface
#F6EAE9
border
#D0C6C5
text
#120503
muted
#817978

Preview Lab

Preview with #7F171E

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

Preview Lab → · Contrast checker → · Palette generator →

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