#7F271A#7F271A

#7F271A is a dark, vivid red. Relative luminance 0.060; OKLCH L 40.7% C 0.124 H 31.2°. Best body text is #FFFFFF at 9.51:1 contrast (WCAG AA passes).

Color values

HEX#7F271A
RGBrgb(127, 39, 26)
HSLhsl(8, 66%, 30%)
HSVhsv(8, 80%, 50%)
CMYKcmyk(0%, 69.3%, 79.5%, 50.2%)
CIE-LABlab(29.51, 37.21, 29.14)
CIE-LCHlch(29.51, 47.26, 38.06°)
OKLaboklab(40.66% 0.106 0.0643)
OKLCHoklch(40.66% 0.124 31.2)
XYZxyz(9.6655, 6.0391, 1.6338)
Luminance0.0604 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F271A #1A727F
analogous
#7F1A3F #7F271A #7F5A1A
triadic
#7F271A #1A7F27 #271A7F
tetradic
#7F271A #3F7F1A #1A727F #5A1A7F
square
#7F271A #3F7F1A #1A727F #5A1A7F
split-complementary
#7F271A #1A7F5A #1A3F7F
monochromatic
#190805 #4C1710 #7F271A #B23724 #D7503C

Accessibility & contrast

On white

9.51
#7F271A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F271A
9.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F271A#FFFFFF#000000##FFFFFF
##7F271A1.009.512.219.51
#FFFFFF9.511.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#403918
Deuteranopia (green-blind)
#564D17
Tritanopia (blue-blind)
#8C0C25
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f271a;
/* rgb */ color: rgb(127, 39, 26);
/* oklch */ color: oklch(40.7% 0.124 31.2);
Tailwind
colors: {
  custom: {
    50: '#ab6657',
    500: '#7f271a',
    950: '#000000',
  },
}
SCSS
$custom: #7f271a;
$custom-light: #ab6657;
$custom-dark: #000000;
JSON
{
  "hex": "#7f271a",
  "rgb": {
    "r": 127,
    "g": 39,
    "b": 26
  },
  "hsl": {
    "h": 7.723,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.40655,
    "c": 0.12399,
    "h": 31.2
  },
  "luminance": 0.06038
}

Semantic roles & 50–950 ramp

primary
#7F271A
secondary
#42A4B3
accent
#D3E93F
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7F271A

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

Preview Lab → · Contrast checker → · Palette generator →

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