#7F271E#7F271E

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

Color values

HEX#7F271E
RGBrgb(127, 39, 30)
HSLhsl(6, 62%, 31%)
HSVhsv(6, 76%, 50%)
CMYKcmyk(0%, 69.3%, 76.4%, 50.2%)
CIE-LABlab(29.56, 37.39, 26.80)
CIE-LCHlch(29.56, 46.01, 35.63°)
OKLaboklab(40.71% 0.1074 0.0603)
OKLCHoklch(40.71% 0.123 29.3)
XYZxyz(9.7133, 6.0582, 1.8859)
Luminance0.0606 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F271E #1E767F
analogous
#7F1E45 #7F271E #7F571E
triadic
#7F271E #1E7F27 #271E7F
tetradic
#7F271E #457F1E #1E767F #571E7F
square
#7F271E #457F1E #1E767F #571E7F
split-complementary
#7F271E #1E7F57 #1E457F
monochromatic
#1C0907 #4D1812 #7F271E #B1362A #D35244

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F271E#FFFFFF#000000##FFFFFF
##7F271E1.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)
#40391C
Deuteranopia (green-blind)
#564D1B
Tritanopia (blue-blind)
#8C0D26
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f271e;
/* rgb */ color: rgb(127, 39, 30);
/* oklch */ color: oklch(40.7% 0.123 29.3);
Tailwind
colors: {
  custom: {
    50: '#ab665a',
    500: '#7f271e',
    950: '#000000',
  },
}
SCSS
$custom: #7f271e;
$custom-light: #ab665a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f271e",
  "rgb": {
    "r": 127,
    "g": 39,
    "b": 30
  },
  "hsl": {
    "h": 5.567,
    "s": 61.783,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40706,
    "c": 0.1232,
    "h": 29.3
  },
  "luminance": 0.06057
}

Semantic roles & 50–950 ramp

primary
#7F271E
secondary
#47A8B2
accent
#D6E543
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110604
muted
#807A79

Preview Lab

Preview with #7F271E

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

Preview Lab → · Contrast checker → · Palette generator →

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