#797F4E#797F4E

#797F4E is a mid, moderate yellow. Relative luminance 0.198; OKLCH L 57.9% C 0.070 H 114.3°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#797F4E
RGBrgb(121, 127, 78)
HSLhsl(67, 24%, 40%)
HSVhsv(67, 39%, 50%)
CMYKcmyk(4.7%, 0%, 38.6%, 50.2%)
CIE-LABlab(51.60, -10.51, 25.91)
CIE-LCHlch(51.60, 27.96, 112.09°)
OKLaboklab(57.91% -0.0287 0.0636)
OKLCHoklch(57.91% 0.07 114.3)
XYZxyz(16.8498, 19.7939, 10.1392)
Luminance0.1979 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F4E #544E7F
analogous
#7F6C4E #797F4E #607F4E
triadic
#797F4E #4E797F #7F4E79
tetradic
#797F4E #4E7F6C #544E7F #7F4E60
square
#797F4E #4E7F6C #544E7F #7F4E60
split-complementary
#797F4E #4E607F #6C4E7F
monochromatic
#31331F #555937 #797F4E #9BA268 #B4BA8E

Accessibility & contrast

On white

4.23
#797F4E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#797F4E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797F4E
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797F4E#FFFFFF#000000##000000
##797F4E1.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#867A4A
Deuteranopia (green-blind)
#857C50
Tritanopia (blue-blind)
#7E7A73
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #797f4e;
/* rgb */ color: rgb(121, 127, 78);
/* oklch */ color: oklch(57.9% 0.070 114.3);
Tailwind
colors: {
  custom: {
    50: '#a0a480',
    500: '#797f4e',
    950: '#000000',
  },
}
SCSS
$custom: #797f4e;
$custom-light: #a0a480;
$custom-dark: #000000;
JSON
{
  "hex": "#797f4e",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 78
  },
  "hsl": {
    "h": 67.347,
    "s": 23.902,
    "l": 40.196
  },
  "oklch": {
    "l": 0.57909,
    "c": 0.06975,
    "h": 114.3
  },
  "luminance": 0.19794
}

Semantic roles & 50–950 ramp

primary
#797F4E
secondary
#8783A6
accent
#67C072
background
#F9FAF7
surface
#F2F4EE
border
#CCCEC9
text
#0F0F0A
muted
#7E7F7C

Preview Lab

Preview with #797F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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