#7F291F#7F291F

#7F291F is a dark, vivid red. Relative luminance 0.062; OKLCH L 41.0% C 0.121 H 29.8°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#7F291F
RGBrgb(127, 41, 31)
HSLhsl(6, 61%, 31%)
HSVhsv(6, 76%, 50%)
CMYKcmyk(0%, 67.7%, 75.6%, 50.2%)
CIE-LABlab(29.91, 36.53, 26.59)
CIE-LCHlch(29.91, 45.18, 36.04°)
OKLaboklab(40.97% 0.105 0.0601)
OKLCHoklch(40.97% 0.121 29.8)
XYZxyz(9.7937, 6.1982, 1.9767)
Luminance0.0620 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F291F #1F757F
analogous
#7F1F45 #7F291F #7F591F
triadic
#7F291F #1F7F29 #291F7F
tetradic
#7F291F #457F1F #1F757F #591F7F
square
#7F291F #457F1F #1F757F #591F7F
split-complementary
#7F291F #1F7F59 #1F457F
monochromatic
#1D0907 #4E1913 #7F291F #B0392B #D25546

Accessibility & contrast

On white

9.38
#7F291F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7F291F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F291F
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F291F#FFFFFF#000000##FFFFFF
##7F291F1.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#413B1D
Deuteranopia (green-blind)
#564D1C
Tritanopia (blue-blind)
#8C1227
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f291f;
/* rgb */ color: rgb(127, 41, 31);
/* oklch */ color: oklch(41.0% 0.121 29.8);
Tailwind
colors: {
  custom: {
    50: '#ab685b',
    500: '#7f291f',
    950: '#000000',
  },
}
SCSS
$custom: #7f291f;
$custom-light: #ab685b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f291f",
  "rgb": {
    "r": 127,
    "g": 41,
    "b": 31
  },
  "hsl": {
    "h": 6.25,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.40972,
    "c": 0.12094,
    "h": 29.8
  },
  "luminance": 0.06197
}

Semantic roles & 50–950 ramp

primary
#7F291F
secondary
#48A7B2
accent
#D3E444
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110604
muted
#807A79

Preview Lab

Preview with #7F291F

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

Preview Lab → · Contrast checker → · Palette generator →

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