#797B4C#797B4C

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

Color values

HEX#797B4C
RGBrgb(121, 123, 76)
HSLhsl(63, 24%, 39%)
HSVhsv(63, 38%, 48%)
CMYKcmyk(1.6%, 0%, 38.2%, 51.8%)
CIE-LABlab(50.40, -8.56, 25.47)
CIE-LCHlch(50.40, 26.86, 108.57°)
OKLaboklab(56.94% -0.0233 0.0625)
OKLCHoklch(56.94% 0.067 110.4)
XYZxyz(16.2728, 18.7529, 9.5985)
Luminance0.1875 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B4C #4E4C7B
analogous
#7B664C #797B4C #627B4C
triadic
#797B4C #4C797B #7B4C79
tetradic
#797B4C #4C7B66 #4E4C7B #7B4C62
square
#797B4C #4C7B66 #4E4C7B #7B4C62
split-complementary
#797B4C #4C627B #664C7B
monochromatic
#2F2F1D #545535 #797B4C #9DA065 #B5B78A

Accessibility & contrast

On white

4.42
#797B4C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.75
#797B4C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B4C
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B4C#FFFFFF#000000##000000
##797B4C1.004.424.754.75
#FFFFFF4.421.0021.0021.00
#0000004.7521.001.001.00
##0000004.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#827749
Deuteranopia (green-blind)
#82794E
Tritanopia (blue-blind)
#7F766F
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797b4c;
/* rgb */ color: rgb(121, 123, 76);
/* oklch */ color: oklch(56.9% 0.067 110.4);
Tailwind
colors: {
  custom: {
    50: '#a0a17e',
    500: '#797b4c',
    950: '#000000',
  },
}
SCSS
$custom: #797b4c;
$custom-light: #a0a17e;
$custom-dark: #000000;
JSON
{
  "hex": "#797b4c",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 76
  },
  "hsl": {
    "h": 62.553,
    "s": 23.618,
    "l": 39.02
  },
  "oklch": {
    "l": 0.56938,
    "c": 0.06666,
    "h": 110.4
  },
  "luminance": 0.18753
}

Semantic roles & 50–950 ramp

primary
#797B4C
secondary
#817FA4
accent
#68C06B
background
#F9F9F7
surface
#F2F2EE
border
#CCCCC9
text
#0F0E0A
muted
#7E7E7C

Preview Lab

Preview with #797B4C

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

Preview Lab → · Contrast checker → · Palette generator →

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