#7F271D#7F271D

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

Color values

HEX#7F271D
RGBrgb(127, 39, 29)
HSLhsl(6, 63%, 31%)
HSVhsv(6, 77%, 50%)
CMYKcmyk(0%, 69.3%, 77.2%, 50.2%)
CIE-LABlab(29.55, 37.34, 27.39)
CIE-LCHlch(29.55, 46.31, 36.26°)
OKLaboklab(40.69% 0.1071 0.0613)
OKLCHoklch(40.69% 0.123 29.8)
XYZxyz(9.7008, 6.0532, 1.8197)
Luminance0.0605 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F271D #1D757F
analogous
#7F1D44 #7F271D #7F581D
triadic
#7F271D #1D7F27 #271D7F
tetradic
#7F271D #447F1D #1D757F #581D7F
square
#7F271D #447F1D #1D757F #581D7F
split-complementary
#7F271D #1D7F58 #1D447F
monochromatic
#1B0806 #4D1812 #7F271D #B13628 #D45142

Accessibility & contrast

On white

9.50
#7F271D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F271D
9.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F271D#FFFFFF#000000##FFFFFF
##7F271D1.009.502.219.50
#FFFFFF9.501.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40391B
Deuteranopia (green-blind)
#564D1A
Tritanopia (blue-blind)
#8C0D25
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f271d;
/* rgb */ color: rgb(127, 39, 29);
/* oklch */ color: oklch(40.7% 0.123 29.8);
Tailwind
colors: {
  custom: {
    50: '#ab6659',
    500: '#7f271d',
    950: '#000000',
  },
}
SCSS
$custom: #7f271d;
$custom-light: #ab6659;
$custom-dark: #000000;
JSON
{
  "hex": "#7f271d",
  "rgb": {
    "r": 127,
    "g": 39,
    "b": 29
  },
  "hsl": {
    "h": 6.122,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.40693,
    "c": 0.1234,
    "h": 29.8
  },
  "luminance": 0.06052
}

Semantic roles & 50–950 ramp

primary
#7F271D
secondary
#45A7B2
accent
#D5E642
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7F271D

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

Preview Lab → · Contrast checker → · Palette generator →

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