#7F331A#7F331A

#7F331A is a dark, moderate red. Relative luminance 0.070; OKLCH L 42.3% C 0.112 H 38.2°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#7F331A
RGBrgb(127, 51, 26)
HSLhsl(15, 66%, 30%)
HSVhsv(15, 80%, 50%)
CMYKcmyk(0%, 59.8%, 79.5%, 50.2%)
CIE-LABlab(31.71, 31.38, 31.43)
CIE-LCHlch(31.71, 44.42, 45.04°)
OKLaboklab(42.31% 0.088 0.0693)
OKLCHoklch(42.31% 0.112 38.2)
XYZxyz(10.1237, 6.9556, 1.7866)
Luminance0.0695 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F331A #1A667F
analogous
#7F1A34 #7F331A #7F651A
triadic
#7F331A #1A7F33 #331A7F
tetradic
#7F331A #347F1A #1A667F #651A7F
square
#7F331A #347F1A #1A667F #651A7F
split-complementary
#7F331A #1A7F65 #1A347F
monochromatic
#190A05 #4C1F10 #7F331A #B24724 #D7633C

Accessibility & contrast

On white

8.78
#7F331A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7F331A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F331A
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F331A#FFFFFF#000000##FFFFFF
##7F331A1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#484017
Deuteranopia (green-blind)
#5B5118
Tritanopia (blue-blind)
#8C222E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f331a;
/* rgb */ color: rgb(127, 51, 26);
/* oklch */ color: oklch(42.3% 0.112 38.2);
Tailwind
colors: {
  custom: {
    50: '#ab6d58',
    500: '#7f331a',
    950: '#000000',
  },
}
SCSS
$custom: #7f331a;
$custom-light: #ab6d58;
$custom-dark: #000000;
JSON
{
  "hex": "#7f331a",
  "rgb": {
    "r": 127,
    "g": 51,
    "b": 26
  },
  "hsl": {
    "h": 14.851,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.42311,
    "c": 0.11198,
    "h": 38.2
  },
  "luminance": 0.06954
}

Semantic roles & 50–950 ramp

primary
#7F331A
secondary
#4297B3
accent
#BFE93F
background
#FBF6F5
surface
#F6ECE9
border
#D0C7C5
text
#110703
muted
#807A78

Preview Lab

Preview with #7F331A

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

Preview Lab → · Contrast checker → · Palette generator →

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