#797B49#797B49

#797B49 is a mid, moderate yellow. Relative luminance 0.187; OKLCH L 56.9% C 0.070 H 110.4°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#797B49
RGBrgb(121, 123, 73)
HSLhsl(62, 26%, 38%)
HSVhsv(62, 41%, 48%)
CMYKcmyk(1.6%, 0%, 40.7%, 51.8%)
CIE-LABlab(50.35, -8.93, 27.07)
CIE-LCHlch(50.35, 28.51, 108.25°)
OKLaboklab(56.88% -0.0246 0.066)
OKLCHoklch(56.88% 0.07 110.4)
XYZxyz(16.1709, 18.7122, 9.0620)
Luminance0.1871 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B49 #4B497B
analogous
#7B6449 #797B49 #607B49
triadic
#797B49 #49797B #7B4979
tetradic
#797B49 #497B64 #4B497B #7B4960
square
#797B49 #497B64 #4B497B #7B4960
split-complementary
#797B49 #49607B #64497B
monochromatic
#2D2E1B #535532 #797B49 #9EA160 #B6B887

Accessibility & contrast

On white

4.43
#797B49 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#797B49 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B49
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B49#FFFFFF#000000##000000
##797B491.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#827745
Deuteranopia (green-blind)
#83794B
Tritanopia (blue-blind)
#7F756F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797b49;
/* rgb */ color: rgb(121, 123, 73);
/* oklch */ color: oklch(56.9% 0.070 110.4);
Tailwind
colors: {
  custom: {
    50: '#a0a17c',
    500: '#797b49',
    950: '#000000',
  },
}
SCSS
$custom: #797b49;
$custom-light: #a0a17c;
$custom-dark: #000000;
JSON
{
  "hex": "#797b49",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 73
  },
  "hsl": {
    "h": 62.4,
    "s": 25.51,
    "l": 38.431
  },
  "oklch": {
    "l": 0.56884,
    "c": 0.07041,
    "h": 110.4
  },
  "luminance": 0.18712
}

Semantic roles & 50–950 ramp

primary
#797B49
secondary
#7E7CA4
accent
#66C26A
background
#F9F9F7
surface
#F2F2EE
border
#CCCCC9
text
#0F0E09
muted
#7E7E7B

Preview Lab

Preview with #797B49

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

Preview Lab → · Contrast checker → · Palette generator →

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