#7B791F#7B791F

#7B791F is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.1% C 0.108 H 108.1°. Best body text is #000000 at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#7B791F
RGBrgb(123, 121, 31)
HSLhsl(59, 60%, 30%)
HSVhsv(59, 75%, 48%)
CMYKcmyk(0%, 1.6%, 74.8%, 51.8%)
CIE-LABlab(49.48, -10.52, 46.61)
CIE-LCHlch(49.48, 47.78, 102.72°)
OKLaboklab(56.09% -0.0338 0.103)
OKLCHoklch(56.09% 0.108 108.1)
XYZxyz(15.2536, 17.9851, 3.9640)
Luminance0.1799 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B791F #1F217B
analogous
#7B4B1F #7B791F #4F7B1F
triadic
#7B791F #1F7B79 #791F7B
tetradic
#7B791F #1F7B4B #1F217B #7B1F4F
square
#7B791F #1F7B4B #1F217B #7B1F4F
split-complementary
#7B791F #1F4F7B #4B1F7B
monochromatic
#191906 #4A4913 #7B791F #ACA92B #D0CD44

Accessibility & contrast

On white

4.57
#7B791F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.60
#7B791F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B791F
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B791F#FFFFFF#000000##000000
##7B791F1.004.574.604.60
#FFFFFF4.571.0021.0021.00
#0000004.6021.001.001.00
##0000004.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#83740E
Deuteranopia (green-blind)
#857726
Tritanopia (blue-blind)
#847168
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7b791f;
/* rgb */ color: rgb(123, 121, 31);
/* oklch */ color: oklch(56.1% 0.108 108.1);
Tailwind
colors: {
  custom: {
    50: '#a49f62',
    500: '#7b791f',
    950: '#000000',
  },
}
SCSS
$custom: #7b791f;
$custom-light: #a49f62;
$custom-dark: #000000;
JSON
{
  "hex": "#7b791f",
  "rgb": {
    "r": 123,
    "g": 121,
    "b": 31
  },
  "hsl": {
    "h": 58.696,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.56086,
    "c": 0.10838,
    "h": 108.1
  },
  "luminance": 0.17985
}

Semantic roles & 50–950 ramp

primary
#7B791F
secondary
#484AAE
accent
#48E345
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#100E05
muted
#7F7E7A

Preview Lab

Preview with #7B791F

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

Preview Lab → · Contrast checker → · Palette generator →

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