#7F271F#7F271F

#7F271F is a dark, vivid red. Relative luminance 0.061; OKLCH L 40.7% C 0.123 H 28.8°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#7F271F
RGBrgb(127, 39, 31)
HSLhsl(5, 61%, 31%)
HSVhsv(5, 76%, 50%)
CMYKcmyk(0%, 69.3%, 75.6%, 50.2%)
CIE-LABlab(29.57, 37.44, 26.21)
CIE-LCHlch(29.57, 45.70, 34.99°)
OKLaboklab(40.72% 0.1078 0.0593)
OKLCHoklch(40.72% 0.123 28.8)
XYZxyz(9.7263, 6.0634, 1.9543)
Luminance0.0606 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F271F #1F777F
analogous
#7F1F47 #7F271F #7F571F
triadic
#7F271F #1F7F27 #271F7F
tetradic
#7F271F #477F1F #1F777F #571F7F
square
#7F271F #477F1F #1F777F #571F7F
split-complementary
#7F271F #1F7F57 #1F477F
monochromatic
#1D0907 #4E1813 #7F271F #B0362B #D25246

Accessibility & contrast

On white

9.49
#7F271F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7F271F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F271F
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F271F#FFFFFF#000000##FFFFFF
##7F271F1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#403A1D
Deuteranopia (green-blind)
#564D1C
Tritanopia (blue-blind)
#8C0E26
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f271f;
/* rgb */ color: rgb(127, 39, 31);
/* oklch */ color: oklch(40.7% 0.123 28.8);
Tailwind
colors: {
  custom: {
    50: '#ab665b',
    500: '#7f271f',
    950: '#000000',
  },
}
SCSS
$custom: #7f271f;
$custom-light: #ab665b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f271f",
  "rgb": {
    "r": 127,
    "g": 39,
    "b": 31
  },
  "hsl": {
    "h": 5,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.4072,
    "c": 0.12302,
    "h": 28.8
  },
  "luminance": 0.06062
}

Semantic roles & 50–950 ramp

primary
#7F271F
secondary
#48A9B2
accent
#D7E444
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110604
muted
#807A79

Preview Lab

Preview with #7F271F

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

Preview Lab → · Contrast checker → · Palette generator →

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