#797E40#797E40

#797E40 is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.4% C 0.085 H 112.8°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#797E40
RGBrgb(121, 126, 64)
HSLhsl(65, 33%, 37%)
HSVhsv(65, 49%, 49%)
CMYKcmyk(4%, 0%, 49.2%, 50.6%)
CIE-LABlab(51.10, -11.60, 32.88)
CIE-LCHlch(51.10, 34.87, 109.44°)
OKLaboklab(57.44% -0.033 0.0784)
OKLCHoklch(57.44% 0.085 112.8)
XYZxyz(16.2717, 19.3571, 7.7286)
Luminance0.1936 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E40 #45407E
analogous
#7E6440 #797E40 #5A7E40
triadic
#797E40 #40797E #7E4079
tetradic
#797E40 #407E64 #45407E #7E405A
square
#797E40 #407E64 #45407E #7E405A
split-complementary
#797E40 #405A7E #64407E
monochromatic
#2B2D17 #52552B #797E40 #A0A755 #B7BC7C

Accessibility & contrast

On white

4.31
#797E40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#797E40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E40
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E40#FFFFFF#000000##000000
##797E401.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#86793B
Deuteranopia (green-blind)
#867A43
Tritanopia (blue-blind)
#807870
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797e40;
/* rgb */ color: rgb(121, 126, 64);
/* oklch */ color: oklch(57.4% 0.085 112.8);
Tailwind
colors: {
  custom: {
    50: '#a1a376',
    500: '#797e40',
    950: '#000000',
  },
}
SCSS
$custom: #797e40;
$custom-light: #a1a376;
$custom-dark: #000000;
JSON
{
  "hex": "#797e40",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 64
  },
  "hsl": {
    "h": 64.839,
    "s": 32.632,
    "l": 37.255
  },
  "oklch": {
    "l": 0.57443,
    "c": 0.08505,
    "h": 112.8
  },
  "luminance": 0.19357
}

Semantic roles & 50–950 ramp

primary
#797E40
secondary
#7773A7
accent
#5FC968
background
#FAFAF7
surface
#F3F3ED
border
#CDCDC8
text
#0F0F08
muted
#7F7F7B

Preview Lab

Preview with #797E40

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

Preview Lab → · Contrast checker → · Palette generator →

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