#797D4E#797D4E

#797D4E is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.4% C 0.067 H 112.5°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#797D4E
RGBrgb(121, 125, 78)
HSLhsl(65, 23%, 40%)
HSVhsv(65, 38%, 49%)
CMYKcmyk(3.2%, 0%, 37.6%, 51%)
CIE-LABlab(51.02, -9.41, 25.15)
CIE-LCHlch(51.02, 26.85, 110.52°)
OKLaboklab(57.44% -0.0256 0.0618)
OKLCHoklch(57.44% 0.067 112.5)
XYZxyz(16.5940, 19.2825, 10.0540)
Luminance0.1928 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D4E #524E7D
analogous
#7D694E #797D4E #627D4E
triadic
#797D4E #4E797D #7D4E79
tetradic
#797D4E #4E7D69 #524E7D #7D4E62
square
#797D4E #4E7D69 #524E7D #7D4E62
split-complementary
#797D4E #4E627D #694E7D
monochromatic
#30321F #555736 #797D4E #9CA168 #B4B88D

Accessibility & contrast

On white

4.32
#797D4E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#797D4E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797D4E
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797D4E#FFFFFF#000000##000000
##797D4E1.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#84794B
Deuteranopia (green-blind)
#847A50
Tritanopia (blue-blind)
#7F7871
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797d4e;
/* rgb */ color: rgb(121, 125, 78);
/* oklch */ color: oklch(57.4% 0.067 112.5);
Tailwind
colors: {
  custom: {
    50: '#a0a280',
    500: '#797d4e',
    950: '#000000',
  },
}
SCSS
$custom: #797d4e;
$custom-light: #a0a280;
$custom-dark: #000000;
JSON
{
  "hex": "#797d4e",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 78
  },
  "hsl": {
    "h": 65.106,
    "s": 23.153,
    "l": 39.804
  },
  "oklch": {
    "l": 0.57442,
    "c": 0.0669,
    "h": 112.5
  },
  "luminance": 0.19282
}

Semantic roles & 50–950 ramp

primary
#797D4E
secondary
#8582A5
accent
#68C070
background
#F9F9F7
surface
#F2F2EE
border
#CCCCC9
text
#0F0F0A
muted
#7E7E7C

Preview Lab

Preview with #797D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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