#7F271B#7F271B

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

Color values

HEX#7F271B
RGBrgb(127, 39, 27)
HSLhsl(7, 65%, 30%)
HSVhsv(7, 79%, 50%)
CMYKcmyk(0%, 69.3%, 78.7%, 50.2%)
CIE-LABlab(29.52, 37.26, 28.56)
CIE-LCHlch(29.52, 46.94, 37.47°)
OKLaboklab(40.67% 0.1064 0.0633)
OKLCHoklch(40.67% 0.124 30.8)
XYZxyz(9.6768, 6.0436, 1.6937)
Luminance0.0604 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F271B #1B737F
analogous
#7F1B41 #7F271B #7F591B
triadic
#7F271B #1B7F27 #271B7F
tetradic
#7F271B #417F1B #1B737F #591B7F
square
#7F271B #417F1B #1B737F #591B7F
split-complementary
#7F271B #1B7F59 #1B417F
monochromatic
#1A0806 #4D1810 #7F271B #B13626 #D6513E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F271B#FFFFFF#000000##FFFFFF
##7F271B1.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)
#403919
Deuteranopia (green-blind)
#564D18
Tritanopia (blue-blind)
#8C0D25
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f271b;
/* rgb */ color: rgb(127, 39, 27);
/* oklch */ color: oklch(40.7% 0.124 30.8);
Tailwind
colors: {
  custom: {
    50: '#ab6658',
    500: '#7f271b',
    950: '#000000',
  },
}
SCSS
$custom: #7f271b;
$custom-light: #ab6658;
$custom-dark: #000000;
JSON
{
  "hex": "#7f271b",
  "rgb": {
    "r": 127,
    "g": 39,
    "b": 27
  },
  "hsl": {
    "h": 7.2,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.40667,
    "c": 0.1238,
    "h": 30.8
  },
  "luminance": 0.06042
}

Semantic roles & 50–950 ramp

primary
#7F271B
secondary
#43A5B3
accent
#D4E840
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7F271B

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

Preview Lab → · Contrast checker → · Palette generator →

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