#797F40#797F40

#797F40 is a mid, moderate yellow. Relative luminance 0.196; OKLCH L 57.7% C 0.086 H 113.6°. Best body text is #000000 at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#797F40
RGBrgb(121, 127, 64)
HSLhsl(66, 33%, 37%)
HSVhsv(66, 50%, 50%)
CMYKcmyk(4.7%, 0%, 49.6%, 50.2%)
CIE-LABlab(51.40, -12.15, 33.24)
CIE-LCHlch(51.40, 35.39, 110.08°)
OKLaboklab(57.68% -0.0346 0.0792)
OKLCHoklch(57.68% 0.086 113.6)
XYZxyz(16.4002, 19.6141, 7.7714)
Luminance0.1961 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797F40 #46407F
analogous
#7F6540 #797F40 #5A7F40
triadic
#797F40 #40797F #7F4079
tetradic
#797F40 #407F65 #46407F #7F405A
square
#797F40 #407F65 #46407F #7F405A
split-complementary
#797F40 #405A7F #65407F
monochromatic
#2B2E17 #52562B #797F40 #A0A855 #B7BD7C

Accessibility & contrast

On white

4.27
#797F40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.92
#797F40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797F40
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797F40#FFFFFF#000000##000000
##797F401.004.274.924.92
#FFFFFF4.271.0021.0021.00
#0000004.9221.001.001.00
##0000004.9221.001.001.00

Color blindness preview

Protanopia (red-blind)
#877A3A
Deuteranopia (green-blind)
#877B43
Tritanopia (blue-blind)
#807970
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797f40;
/* rgb */ color: rgb(121, 127, 64);
/* oklch */ color: oklch(57.7% 0.086 113.6);
Tailwind
colors: {
  custom: {
    50: '#a1a476',
    500: '#797f40',
    950: '#000000',
  },
}
SCSS
$custom: #797f40;
$custom-light: #a1a476;
$custom-dark: #000000;
JSON
{
  "hex": "#797f40",
  "rgb": {
    "r": 121,
    "g": 127,
    "b": 64
  },
  "hsl": {
    "h": 65.714,
    "s": 32.984,
    "l": 37.451
  },
  "oklch": {
    "l": 0.57679,
    "c": 0.08638,
    "h": 113.6
  },
  "luminance": 0.19614
}

Semantic roles & 50–950 ramp

primary
#797F40
secondary
#7873A8
accent
#5FC969
background
#FAFAF7
surface
#F3F3ED
border
#CDCDC8
text
#0F0F08
muted
#7F7F7B

Preview Lab

Preview with #797F40

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

Preview Lab → · Contrast checker → · Palette generator →

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