#797D40#797D40

#797D40 is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.2% C 0.084 H 112.1°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#797D40
RGBrgb(121, 125, 64)
HSLhsl(64, 32%, 37%)
HSVhsv(64, 49%, 49%)
CMYKcmyk(3.2%, 0%, 48.8%, 51%)
CIE-LABlab(50.81, -11.06, 32.53)
CIE-LCHlch(50.81, 34.35, 108.77°)
OKLaboklab(57.21% -0.0315 0.0776)
OKLCHoklch(57.21% 0.084 112.1)
XYZxyz(16.1445, 19.1026, 7.6862)
Luminance0.1910 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D40 #44407D
analogous
#7D6340 #797D40 #5B7D40
triadic
#797D40 #40797D #7D4079
tetradic
#797D40 #407D63 #44407D #7D405B
square
#797D40 #407D63 #44407D #7D405B
split-complementary
#797D40 #405B7D #63407D
monochromatic
#2B2C17 #52552B #797D40 #A0A555 #B8BC7C

Accessibility & contrast

On white

4.36
#797D40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#797D40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797D40
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797D40#FFFFFF#000000##000000
##797D401.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#85783B
Deuteranopia (green-blind)
#857A43
Tritanopia (blue-blind)
#80776F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797d40;
/* rgb */ color: rgb(121, 125, 64);
/* oklch */ color: oklch(57.2% 0.084 112.1);
Tailwind
colors: {
  custom: {
    50: '#a1a276',
    500: '#797d40',
    950: '#000000',
  },
}
SCSS
$custom: #797d40;
$custom-light: #a1a276;
$custom-dark: #000000;
JSON
{
  "hex": "#797d40",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 64
  },
  "hsl": {
    "h": 63.934,
    "s": 32.275,
    "l": 37.059
  },
  "oklch": {
    "l": 0.57207,
    "c": 0.08373,
    "h": 112.1
  },
  "luminance": 0.19102
}

Semantic roles & 50–950 ramp

primary
#797D40
secondary
#7673A6
accent
#5FC866
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0F08
muted
#7F7E7B

Preview Lab

Preview with #797D40

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

Preview Lab → · Contrast checker → · Palette generator →

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