#797B3A#797B3A

#797B3A is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.7% C 0.088 H 110.5°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#797B3A
RGBrgb(121, 123, 58)
HSLhsl(62, 36%, 35%)
HSVhsv(62, 53%, 48%)
CMYKcmyk(1.6%, 0%, 52.8%, 51.8%)
CIE-LABlab(50.14, -10.56, 34.88)
CIE-LCHlch(50.14, 36.44, 106.85°)
OKLaboklab(56.65% -0.0307 0.0822)
OKLCHoklch(56.65% 0.088 110.5)
XYZxyz(15.7322, 18.5367, 6.7514)
Luminance0.1854 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B3A #3C3A7B
analogous
#7B5C3A #797B3A #587B3A
triadic
#797B3A #3A797B #7B3A79
tetradic
#797B3A #3A7B5C #3C3A7B #7B3A58
square
#797B3A #3A7B5C #3C3A7B #7B3A58
split-complementary
#797B3A #3A587B #5C3A7B
monochromatic
#272813 #505126 #797B3A #A2A54E #BBBD73

Accessibility & contrast

On white

4.46
#797B3A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#797B3A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B3A
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B3A#FFFFFF#000000##000000
##797B3A1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#847634
Deuteranopia (green-blind)
#84783D
Tritanopia (blue-blind)
#80746C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b3a;
/* rgb */ color: rgb(121, 123, 58);
/* oklch */ color: oklch(56.7% 0.088 110.5);
Tailwind
colors: {
  custom: {
    50: '#a1a172',
    500: '#797b3a',
    950: '#000000',
  },
}
SCSS
$custom: #797b3a;
$custom-light: #a1a172;
$custom-dark: #000000;
JSON
{
  "hex": "#797b3a",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 58
  },
  "hsl": {
    "h": 61.846,
    "s": 35.912,
    "l": 35.49
  },
  "oklch": {
    "l": 0.56651,
    "c": 0.08771,
    "h": 110.5
  },
  "luminance": 0.18536
}

Semantic roles & 50–950 ramp

primary
#797B3A
secondary
#6C6BA6
accent
#5CCC5F
background
#FAF9F7
surface
#F4F2ED
border
#CECCC8
text
#0F0E08
muted
#7F7E7B

Preview Lab

Preview with #797B3A

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

Preview Lab → · Contrast checker → · Palette generator →

#797B3A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva