#797B3E#797B3E

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

Color values

HEX#797B3E
RGBrgb(121, 123, 62)
HSLhsl(62, 33%, 36%)
HSVhsv(62, 50%, 48%)
CMYKcmyk(1.6%, 0%, 49.6%, 51.8%)
CIE-LABlab(50.19, -10.16, 32.84)
CIE-LCHlch(50.19, 34.38, 107.20°)
OKLaboklab(56.71% -0.0291 0.0781)
OKLCHoklch(56.71% 0.083 110.5)
XYZxyz(15.8379, 18.5790, 7.3083)
Luminance0.1858 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B3E #403E7B
analogous
#7B5F3E #797B3E #5B7B3E
triadic
#797B3E #3E797B #7B3E79
tetradic
#797B3E #3E7B5F #403E7B #7B3E5B
square
#797B3E #3E7B5F #403E7B #7B3E5B
split-complementary
#797B3E #3E5B7B #5F3E7B
monochromatic
#292A15 #515229 #797B3E #A1A453 #B9BB78

Accessibility & contrast

On white

4.45
#797B3E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#797B3E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B3E
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B3E#FFFFFF#000000##000000
##797B3E1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#837639
Deuteranopia (green-blind)
#847841
Tritanopia (blue-blind)
#80756D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b3e;
/* rgb */ color: rgb(121, 123, 62);
/* oklch */ color: oklch(56.7% 0.083 110.5);
Tailwind
colors: {
  custom: {
    50: '#a1a175',
    500: '#797b3e',
    950: '#000000',
  },
}
SCSS
$custom: #797b3e;
$custom-light: #a1a175;
$custom-dark: #000000;
JSON
{
  "hex": "#797b3e",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 62
  },
  "hsl": {
    "h": 61.967,
    "s": 32.973,
    "l": 36.275
  },
  "oklch": {
    "l": 0.56707,
    "c": 0.08337,
    "h": 110.5
  },
  "luminance": 0.18579
}

Semantic roles & 50–950 ramp

primary
#797B3E
secondary
#716FA5
accent
#5FC962
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0E08
muted
#7F7E7B

Preview Lab

Preview with #797B3E

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

Preview Lab → · Contrast checker → · Palette generator →

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