#797A4E#797A4E

#797A4E is a mid, moderate yellow. Relative luminance 0.185; OKLCH L 56.7% C 0.063 H 109.4°. Best body text is #000000 at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#797A4E
RGBrgb(121, 122, 78)
HSLhsl(61, 22%, 39%)
HSVhsv(61, 36%, 48%)
CMYKcmyk(0.8%, 0%, 36.1%, 52.2%)
CIE-LABlab(50.14, -7.74, 24.01)
CIE-LCHlch(50.14, 25.23, 107.87°)
OKLaboklab(56.74% -0.0208 0.0592)
OKLCHoklch(56.74% 0.063 109.4)
XYZxyz(16.2200, 18.5343, 9.9293)
Luminance0.1853 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797A4E #4F4E7A
analogous
#7A654E #797A4E #637A4E
triadic
#797A4E #4E797A #7A4E79
tetradic
#797A4E #4E7A65 #4F4E7A #7A4E63
square
#797A4E #4E7A65 #4F4E7A #7A4E63
split-complementary
#797A4E #4E637A #654E7A
monochromatic
#2F2F1E #545536 #797A4E #9D9E67 #B5B68D

Accessibility & contrast

On white

4.46
#797A4E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#797A4E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797A4E
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797A4E#FFFFFF#000000##000000
##797A4E1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#81764B
Deuteranopia (green-blind)
#817850
Tritanopia (blue-blind)
#7F756F
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797a4e;
/* rgb */ color: rgb(121, 122, 78);
/* oklch */ color: oklch(56.7% 0.063 109.4);
Tailwind
colors: {
  custom: {
    50: '#a0a080',
    500: '#797a4e',
    950: '#000000',
  },
}
SCSS
$custom: #797a4e;
$custom-light: #a0a080;
$custom-dark: #000000;
JSON
{
  "hex": "#797a4e",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 78
  },
  "hsl": {
    "h": 61.364,
    "s": 22,
    "l": 39.216
  },
  "oklch": {
    "l": 0.56743,
    "c": 0.06274,
    "h": 109.4
  },
  "luminance": 0.18534
}

Semantic roles & 50–950 ramp

primary
#797A4E
secondary
#8281A3
accent
#69BF6B
background
#F9F9F7
surface
#F2F2EE
border
#CCCCC9
text
#0F0E0A
muted
#7E7E7C

Preview Lab

Preview with #797A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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