#7F271C#7F271C

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

Color values

HEX#7F271C
RGBrgb(127, 39, 28)
HSLhsl(7, 64%, 30%)
HSVhsv(7, 78%, 50%)
CMYKcmyk(0%, 69.3%, 78%, 50.2%)
CIE-LABlab(29.53, 37.30, 27.98)
CIE-LCHlch(29.53, 46.63, 36.87°)
OKLaboklab(40.68% 0.1067 0.0624)
OKLCHoklch(40.68% 0.124 30.3)
XYZxyz(9.6886, 6.0483, 1.7557)
Luminance0.0605 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F271C #1C747F
analogous
#7F1C42 #7F271C #7F591C
triadic
#7F271C #1C7F27 #271C7F
tetradic
#7F271C #427F1C #1C747F #591C7F
square
#7F271C #427F1C #1C747F #591C7F
split-complementary
#7F271C #1C7F59 #1C427F
monochromatic
#1B0806 #4D1811 #7F271C #B13627 #D55140

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F271C#FFFFFF#000000##FFFFFF
##7F271C1.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)
#40391A
Deuteranopia (green-blind)
#564D19
Tritanopia (blue-blind)
#8C0D25
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f271c;
/* rgb */ color: rgb(127, 39, 28);
/* oklch */ color: oklch(40.7% 0.124 30.3);
Tailwind
colors: {
  custom: {
    50: '#ab6659',
    500: '#7f271c',
    950: '#000000',
  },
}
SCSS
$custom: #7f271c;
$custom-light: #ab6659;
$custom-dark: #000000;
JSON
{
  "hex": "#7f271c",
  "rgb": {
    "r": 127,
    "g": 39,
    "b": 28
  },
  "hsl": {
    "h": 6.667,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.4068,
    "c": 0.1236,
    "h": 30.3
  },
  "luminance": 0.06047
}

Semantic roles & 50–950 ramp

primary
#7F271C
secondary
#44A6B3
accent
#D4E741
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110603
muted
#807A78

Preview Lab

Preview with #7F271C

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

Preview Lab → · Contrast checker → · Palette generator →

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