#7D791F#7D791F

#7D791F is a mid, moderate yellow. Relative luminance 0.181; OKLCH L 56.3% C 0.108 H 106.8°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#7D791F
RGBrgb(125, 121, 31)
HSLhsl(57, 60%, 31%)
HSVhsv(57, 75%, 49%)
CMYKcmyk(0%, 3.2%, 75.2%, 51%)
CIE-LABlab(49.66, -9.59, 46.84)
CIE-LCHlch(49.66, 47.81, 101.57°)
OKLaboklab(56.27% -0.0313 0.1034)
OKLCHoklch(56.27% 0.108 106.8)
XYZxyz(15.5428, 18.1342, 3.9776)
Luminance0.1813 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D791F #1F237D
analogous
#7D4A1F #7D791F #527D1F
triadic
#7D791F #1F7D79 #791F7D
tetradic
#7D791F #1F7D4A #1F237D #7D1F52
square
#7D791F #1F7D4A #1F237D #7D1F52
split-complementary
#7D791F #1F527D #4A1F7D
monochromatic
#1B1A07 #4C4A13 #7D791F #AEA82B #D1CB45

Accessibility & contrast

On white

4.54
#7D791F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#7D791F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7D791F
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D791F#FFFFFF#000000##000000
##7D791F1.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#84740E
Deuteranopia (green-blind)
#867826
Tritanopia (blue-blind)
#877168
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7d791f;
/* rgb */ color: rgb(125, 121, 31);
/* oklch */ color: oklch(56.3% 0.108 106.8);
Tailwind
colors: {
  custom: {
    50: '#a69f62',
    500: '#7d791f',
    950: '#000000',
  },
}
SCSS
$custom: #7d791f;
$custom-light: #a69f62;
$custom-dark: #000000;
JSON
{
  "hex": "#7d791f",
  "rgb": {
    "r": 125,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 57.447,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.56273,
    "c": 0.10804,
    "h": 106.8
  },
  "luminance": 0.18134
}

Semantic roles & 50–950 ramp

primary
#7D791F
secondary
#484CB0
accent
#4BE344
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7D791F

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

Preview Lab → · Contrast checker → · Palette generator →

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