#7F331B#7F331B

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

Color values

HEX#7F331B
RGBrgb(127, 51, 27)
HSLhsl(14, 65%, 30%)
HSVhsv(14, 79%, 50%)
CMYKcmyk(0%, 59.8%, 78.7%, 50.2%)
CIE-LABlab(31.72, 31.43, 30.89)
CIE-LCHlch(31.72, 44.06, 44.50°)
OKLaboklab(42.32% 0.0883 0.0684)
OKLCHoklch(42.32% 0.112 37.7)
XYZxyz(10.1351, 6.9602, 1.8464)
Luminance0.0696 (WCAG relative)
Temperaturewarm
Familyred

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F331B #1B677F
analogous
#7F1B35 #7F331B #7F651B
triadic
#7F331B #1B7F33 #331B7F
tetradic
#7F331B #357F1B #1B677F #651B7F
square
#7F331B #357F1B #1B677F #651B7F
split-complementary
#7F331B #1B7F65 #1B357F
monochromatic
#1A0A06 #4D1F10 #7F331B #B14726 #D6633E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F331B#FFFFFF#000000##FFFFFF
##7F331B1.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)
#484018
Deuteranopia (green-blind)
#5B5119
Tritanopia (blue-blind)
#8C222E
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f331b;
/* rgb */ color: rgb(127, 51, 27);
/* oklch */ color: oklch(42.3% 0.112 37.7);
Tailwind
colors: {
  custom: {
    50: '#ab6d59',
    500: '#7f331b',
    950: '#000000',
  },
}
SCSS
$custom: #7f331b;
$custom-light: #ab6d59;
$custom-dark: #000000;
JSON
{
  "hex": "#7f331b",
  "rgb": {
    "r": 127,
    "g": 51,
    "b": 27
  },
  "hsl": {
    "h": 14.4,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.42322,
    "c": 0.11168,
    "h": 37.7
  },
  "luminance": 0.06959
}

Semantic roles & 50–950 ramp

primary
#7F331B
secondary
#4398B3
accent
#C0E840
background
#FBF6F5
surface
#F6ECE9
border
#D0C7C5
text
#110703
muted
#807A78

Preview Lab

Preview with #7F331B

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

Preview Lab → · Contrast checker → · Palette generator →

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