#797E4D#797E4D

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

Color values

HEX#797E4D
RGBrgb(121, 126, 77)
HSLhsl(66, 24%, 40%)
HSVhsv(66, 39%, 49%)
CMYKcmyk(4%, 0%, 38.9%, 50.6%)
CIE-LABlab(51.29, -10.09, 26.06)
CIE-LCHlch(51.29, 27.95, 111.17°)
OKLaboklab(57.66% -0.0276 0.0639)
OKLCHoklch(57.66% 0.07 113.3)
XYZxyz(16.6857, 19.5227, 9.9090)
Luminance0.1952 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E4D #524D7E
analogous
#7E6A4D #797E4D #617E4D
triadic
#797E4D #4D797E #7E4D79
tetradic
#797E4D #4D7E6A #524D7E #7E4D61
square
#797E4D #4D7E6A #524D7E #7E4D61
split-complementary
#797E4D #4D617E #6A4D7E
monochromatic
#30321F #555836 #797E4D #9CA266 #B4B98C

Accessibility & contrast

On white

4.28
#797E4D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##797E4D#FFFFFF#000000##000000
##797E4D1.004.284.904.90
#FFFFFF4.281.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#857A49
Deuteranopia (green-blind)
#857B4F
Tritanopia (blue-blind)
#7F7972
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797e4d;
/* rgb */ color: rgb(121, 126, 77);
/* oklch */ color: oklch(57.7% 0.070 113.3);
Tailwind
colors: {
  custom: {
    50: '#a0a37f',
    500: '#797e4d',
    950: '#000000',
  },
}
SCSS
$custom: #797e4d;
$custom-light: #a0a37f;
$custom-dark: #000000;
JSON
{
  "hex": "#797e4d",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 77
  },
  "hsl": {
    "h": 66.122,
    "s": 24.138,
    "l": 39.804
  },
  "oklch": {
    "l": 0.57657,
    "c": 0.06958,
    "h": 113.3
  },
  "luminance": 0.19522
}

Semantic roles & 50–950 ramp

primary
#797E4D
secondary
#8581A6
accent
#67C170
background
#F9FAF7
surface
#F2F3EE
border
#CCCDC9
text
#0F0F0A
muted
#7E7F7C

Preview Lab

Preview with #797E4D

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

Preview Lab → · Contrast checker → · Palette generator →

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