#7B791B#7B791B

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

Color values

HEX#7B791B
RGBrgb(123, 121, 27)
HSLhsl(59, 64%, 29%)
HSVhsv(59, 78%, 48%)
CMYKcmyk(0%, 1.6%, 78%, 51.8%)
CIE-LABlab(49.45, -10.71, 48.05)
CIE-LCHlch(49.45, 49.23, 102.56°)
OKLaboklab(56.06% -0.0347 0.1053)
OKLCHoklch(56.06% 0.111 108.2)
XYZxyz(15.2042, 17.9653, 3.7035)
Luminance0.1797 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B791B #1B1D7B
analogous
#7B491B #7B791B #4D7B1B
triadic
#7B791B #1B7B79 #791B7B
tetradic
#7B791B #1B7B49 #1B1D7B #7B1B4D
square
#7B791B #1B7B49 #1B1D7B #7B1B4D
split-complementary
#7B791B #1B4D7B #491B7B
monochromatic
#191906 #494810 #7B791B #ADAA26 #D4D13C

Accessibility & contrast

On white

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

On black

4.59
#7B791B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7B791B
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B791B#FFFFFF#000000##000000
##7B791B1.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#847405
Deuteranopia (green-blind)
#857723
Tritanopia (blue-blind)
#847167
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7b791b;
/* rgb */ color: rgb(123, 121, 27);
/* oklch */ color: oklch(56.1% 0.111 108.2);
Tailwind
colors: {
  custom: {
    50: '#a49f60',
    500: '#7b791b',
    950: '#000000',
  },
}
SCSS
$custom: #7b791b;
$custom-light: #a49f60;
$custom-dark: #000000;
JSON
{
  "hex": "#7b791b",
  "rgb": {
    "r": 123,
    "g": 121,
    "b": 27
  },
  "hsl": {
    "h": 58.75,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.56059,
    "c": 0.11084,
    "h": 108.2
  },
  "luminance": 0.17965
}

Semantic roles & 50–950 ramp

primary
#7B791B
secondary
#4345AF
accent
#44E741
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7B791B

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

Preview Lab → · Contrast checker → · Palette generator →

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