#7F311C#7F311C

#7F311C is a dark, moderate red. Relative luminance 0.068; OKLCH L 42.0% C 0.113 H 35.9°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#7F311C
RGBrgb(127, 49, 28)
HSLhsl(13, 64%, 30%)
HSVhsv(13, 78%, 50%)
CMYKcmyk(0%, 61.4%, 78%, 50.2%)
CIE-LABlab(31.33, 32.50, 29.92)
CIE-LCHlch(31.33, 44.18, 42.63°)
OKLaboklab(42.04% 0.0918 0.0665)
OKLCHoklch(42.04% 0.113 35.9)
XYZxyz(10.0614, 6.7939, 1.8799)
Luminance0.0679 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F311C #1C6A7F
analogous
#7F1C39 #7F311C #7F621C
triadic
#7F311C #1C7F31 #311C7F
tetradic
#7F311C #397F1C #1C6A7F #621C7F
square
#7F311C #397F1C #1C6A7F #621C7F
split-complementary
#7F311C #1C7F62 #1C397F
monochromatic
#1B0A06 #4D1E11 #7F311C #B14427 #D56040

Accessibility & contrast

On white

8.90
#7F311C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7F311C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F311C
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F311C#FFFFFF#000000##FFFFFF
##7F311C1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#473F19
Deuteranopia (green-blind)
#5A501A
Tritanopia (blue-blind)
#8C1F2D
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f311c;
/* rgb */ color: rgb(127, 49, 28);
/* oklch */ color: oklch(42.0% 0.113 35.9);
Tailwind
colors: {
  custom: {
    50: '#ab6c59',
    500: '#7f311c',
    950: '#000000',
  },
}
SCSS
$custom: #7f311c;
$custom-light: #ab6c59;
$custom-dark: #000000;
JSON
{
  "hex": "#7f311c",
  "rgb": {
    "r": 127,
    "g": 49,
    "b": 28
  },
  "hsl": {
    "h": 12.727,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42035,
    "c": 0.1134,
    "h": 35.9
  },
  "luminance": 0.06792
}

Semantic roles & 50–950 ramp

primary
#7F311C
secondary
#449BB3
accent
#C4E741
background
#FBF6F5
surface
#F6EBE9
border
#D0C6C5
text
#110703
muted
#807A78

Preview Lab

Preview with #7F311C

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

Preview Lab → · Contrast checker → · Palette generator →

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