#7F1517#7F1517

#7F1517 is a dark, vivid red. Relative luminance 0.051; OKLCH L 38.8% C 0.140 H 26.1°. Best body text is #FFFFFF at 10.39:1 contrast (WCAG AA passes).

Color values

HEX#7F1517
RGBrgb(127, 21, 23)
HSLhsl(359, 72%, 29%)
HSVhsv(359, 83%, 50%)
CMYKcmyk(0%, 83.5%, 81.9%, 50.2%)
CIE-LABlab(27.05, 43.81, 28.35)
CIE-LCHlch(27.05, 52.19, 32.91°)
OKLaboklab(38.81% 0.1261 0.0616)
OKLCHoklch(38.81% 0.14 26.1)
XYZxyz(9.1763, 5.1117, 1.3139)
Luminance0.0511 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1517 #157F7D
analogous
#7F154C #7F1517 #7F4815
triadic
#7F1517 #177F15 #15177F
tetradic
#7F1517 #4C7F15 #157F7D #48157F
square
#7F1517 #4C7F15 #157F7D #48157F
split-complementary
#7F1517 #157F48 #154C7F
monochromatic
#1A0405 #4A0C0D #7F1517 #B41E21 #DD3135

Accessibility & contrast

On white

10.39
#7F1517 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#7F1517 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1517
10.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1517#FFFFFF#000000##FFFFFF
##7F15171.0010.392.0210.39
#FFFFFF10.391.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.391.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: #7f1517;
/* rgb */ color: rgb(127, 21, 23);
/* oklch */ color: oklch(38.8% 0.140 26.1);
Tailwind
colors: {
  custom: {
    50: '#ad5e54',
    500: '#7f1517',
    950: '#000000',
  },
}
SCSS
$custom: #7f1517;
$custom-light: #ad5e54;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1517",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 23
  },
  "hsl": {
    "h": 358.868,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.38808,
    "c": 0.14034,
    "h": 26.1
  },
  "luminance": 0.0511
}

Semantic roles & 50–950 ramp

primary
#7F1517
secondary
#3CB4B2
accent
#EEEB39
background
#FBF5F4
surface
#F6EAE7
border
#D0C6C3
text
#120503
muted
#817978

Preview Lab

Preview with #7F1517

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

Preview Lab → · Contrast checker → · Palette generator →

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