#7F1417#7F1417

#7F1417 is a dark, vivid red. Relative luminance 0.051; OKLCH L 38.7% C 0.141 H 25.8°. Best body text is #FFFFFF at 10.42:1 contrast (WCAG AA passes).

Color values

HEX#7F1417
RGBrgb(127, 20, 23)
HSLhsl(358, 73%, 29%)
HSVhsv(358, 84%, 50%)
CMYKcmyk(0%, 84.3%, 81.9%, 50.2%)
CIE-LABlab(26.95, 44.10, 28.25)
CIE-LCHlch(26.95, 52.37, 32.64°)
OKLaboklab(38.73% 0.127 0.0614)
OKLCHoklch(38.73% 0.141 25.8)
XYZxyz(9.1583, 5.0757, 1.3079)
Luminance0.0507 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1417 #147F7C
analogous
#7F144D #7F1417 #7F4714
triadic
#7F1417 #177F14 #14177F
tetradic
#7F1417 #4D7F14 #147F7C #47147F
square
#7F1417 #4D7F14 #147F7C #47147F
split-complementary
#7F1417 #147F47 #144D7F
monochromatic
#1A0405 #4A0C0D #7F1417 #B41C21 #DE2F34

Accessibility & contrast

On white

10.42
#7F1417 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.01
#7F1417 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1417
10.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1417#FFFFFF#000000##FFFFFF
##7F14171.0010.422.0110.42
#FFFFFF10.421.0021.001.00
#0000002.0121.001.0021.00
##FFFFFF10.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373116
Deuteranopia (green-blind)
#514812
Tritanopia (blue-blind)
#8D0017
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #7f1417;
/* rgb */ color: rgb(127, 20, 23);
/* oklch */ color: oklch(38.7% 0.141 25.8);
Tailwind
colors: {
  custom: {
    50: '#ad5e54',
    500: '#7f1417',
    950: '#000000',
  },
}
SCSS
$custom: #7f1417;
$custom-light: #ad5e54;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1417",
  "rgb": {
    "r": 127,
    "g": 20,
    "b": 23
  },
  "hsl": {
    "h": 358.318,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.38733,
    "c": 0.14105,
    "h": 25.8
  },
  "luminance": 0.05074
}

Semantic roles & 50–950 ramp

primary
#7F1417
secondary
#3BB4B1
accent
#EFEA38
background
#FBF5F4
surface
#F6EAE7
border
#D0C6C3
text
#120503
muted
#817978

Preview Lab

Preview with #7F1417

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

Preview Lab → · Contrast checker → · Palette generator →

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