#7B791C#7B791C

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

Color values

HEX#7B791C
RGBrgb(123, 121, 28)
HSLhsl(59, 63%, 30%)
HSVhsv(59, 77%, 48%)
CMYKcmyk(0%, 1.6%, 77.2%, 51.8%)
CIE-LABlab(49.46, -10.66, 47.70)
CIE-LCHlch(49.46, 48.88, 102.60°)
OKLaboklab(56.07% -0.0345 0.1047)
OKLCHoklch(56.07% 0.11 108.2)
XYZxyz(15.2159, 17.9700, 3.7654)
Luminance0.1797 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B791C #1C1E7B
analogous
#7B4A1C #7B791C #4E7B1C
triadic
#7B791C #1C7B79 #791C7B
tetradic
#7B791C #1C7B4A #1C1E7B #7B1C4E
square
#7B791C #1C7B4A #1C1E7B #7B1C4E
split-complementary
#7B791C #1C4E7B #4A1C7B
monochromatic
#191906 #494811 #7B791C #ADAA27 #D3D03E

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7B791C#FFFFFF#000000##000000
##7B791C1.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)
#847407
Deuteranopia (green-blind)
#857723
Tritanopia (blue-blind)
#847167
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7b791c;
/* rgb */ color: rgb(123, 121, 28);
/* oklch */ color: oklch(56.1% 0.110 108.2);
Tailwind
colors: {
  custom: {
    50: '#a49f60',
    500: '#7b791c',
    950: '#000000',
  },
}
SCSS
$custom: #7b791c;
$custom-light: #a49f60;
$custom-dark: #000000;
JSON
{
  "hex": "#7b791c",
  "rgb": {
    "r": 123,
    "g": 121,
    "b": 28
  },
  "hsl": {
    "h": 58.737,
    "s": 62.914,
    "l": 29.608
  },
  "oklch": {
    "l": 0.56065,
    "c": 0.11025,
    "h": 108.2
  },
  "luminance": 0.1797
}

Semantic roles & 50–950 ramp

primary
#7B791C
secondary
#4446AF
accent
#45E642
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #7B791C

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

Preview Lab → · Contrast checker → · Palette generator →

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