#7F712B#7F712B

#7F712B is a mid, moderate yellow. Relative luminance 0.165; OKLCH L 54.7% C 0.091 H 98.0°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#7F712B
RGBrgb(127, 113, 43)
HSLhsl(50, 49%, 33%)
HSVhsv(50, 66%, 50%)
CMYKcmyk(0%, 11%, 66.1%, 50.2%)
CIE-LABlab(47.62, -3.46, 39.66)
CIE-LCHlch(47.62, 39.81, 94.99°)
OKLaboklab(54.73% -0.0126 0.0903)
OKLCHoklch(54.73% 0.091 98)
XYZxyz(15.0942, 16.4974, 4.6743)
Luminance0.1650 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F712B #2B397F
analogous
#7F472B #7F712B #637F2B
triadic
#7F712B #2B7F71 #712B7F
tetradic
#7F712B #2B7F47 #2B397F #7F2B63
square
#7F712B #2B7F47 #2B397F #7F2B63
split-complementary
#7F712B #2B637F #472B7F
monochromatic
#24200C #51481C #7F712B #AD9A3A #C8B65C

Accessibility & contrast

On white

4.88
#7F712B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#7F712B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7F712B
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F712B#FFFFFF#000000##FFFFFF
##7F712B1.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6E23
Deuteranopia (green-blind)
#80732F
Tritanopia (blue-blind)
#896962
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7f712b;
/* rgb */ color: rgb(127, 113, 43);
/* oklch */ color: oklch(54.7% 0.091 98.0);
Tailwind
colors: {
  custom: {
    50: '#a79968',
    500: '#7f712b',
    950: '#000000',
  },
}
SCSS
$custom: #7f712b;
$custom-light: #a79968;
$custom-dark: #000000;
JSON
{
  "hex": "#7f712b",
  "rgb": {
    "r": 127,
    "g": 113,
    "b": 43
  },
  "hsl": {
    "h": 50,
    "s": 49.412,
    "l": 33.333
  },
  "oklch": {
    "l": 0.54729,
    "c": 0.09122,
    "h": 98
  },
  "luminance": 0.16497
}

Semantic roles & 50–950 ramp

primary
#7F712B
secondary
#5866AE
accent
#66D94F
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100D06
muted
#7F7E7A

Preview Lab

Preview with #7F712B

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

Preview Lab → · Contrast checker → · Palette generator →

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