#797E4A#797E4A

#797E4A is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.6% C 0.073 H 113.2°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#797E4A
RGBrgb(121, 126, 74)
HSLhsl(66, 26%, 39%)
HSVhsv(66, 41%, 49%)
CMYKcmyk(4%, 0%, 41.3%, 50.6%)
CIE-LABlab(51.25, -10.47, 27.66)
CIE-LCHlch(51.25, 29.57, 110.72°)
OKLaboklab(57.6% -0.0289 0.0674)
OKLCHoklch(57.6% 0.073 113.2)
XYZxyz(16.5822, 19.4813, 9.3640)
Luminance0.1948 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E4A #4F4A7E
analogous
#7E694A #797E4A #5F7E4A
triadic
#797E4A #4A797E #7E4A79
tetradic
#797E4A #4A7E69 #4F4A7E #7E4A5F
square
#797E4A #4A7E69 #4F4A7E #7E4A5F
split-complementary
#797E4A #4A5F7E #694A7E
monochromatic
#2F311D #545733 #797E4A #9DA362 #B5BA89

Accessibility & contrast

On white

4.29
#797E4A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#797E4A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E4A
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E4A#FFFFFF#000000##000000
##797E4A1.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#857946
Deuteranopia (green-blind)
#857B4C
Tritanopia (blue-blind)
#7F7871
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797e4a;
/* rgb */ color: rgb(121, 126, 74);
/* oklch */ color: oklch(57.6% 0.073 113.2);
Tailwind
colors: {
  custom: {
    50: '#a0a37d',
    500: '#797e4a',
    950: '#000000',
  },
}
SCSS
$custom: #797e4a;
$custom-light: #a0a37d;
$custom-dark: #000000;
JSON
{
  "hex": "#797e4a",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 74
  },
  "hsl": {
    "h": 65.769,
    "s": 26,
    "l": 39.216
  },
  "oklch": {
    "l": 0.57603,
    "c": 0.0733,
    "h": 113.2
  },
  "luminance": 0.19481
}

Semantic roles & 50–950 ramp

primary
#797E4A
secondary
#827EA6
accent
#65C26E
background
#F9FAF7
surface
#F2F3EE
border
#CCCDC9
text
#0F0F0A
muted
#7E7F7C

Preview Lab

Preview with #797E4A

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

Preview Lab → · Contrast checker → · Palette generator →

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