#797E39#797E39

#797E39 is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.3% C 0.093 H 112.7°. Best body text is #000000 at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#797E39
RGBrgb(121, 126, 57)
HSLhsl(64, 38%, 36%)
HSVhsv(64, 55%, 49%)
CMYKcmyk(4%, 0%, 54.8%, 50.6%)
CIE-LABlab(51.02, -12.30, 36.41)
CIE-LCHlch(51.02, 38.43, 108.66°)
OKLaboklab(57.35% -0.0357 0.0854)
OKLCHoklch(57.35% 0.093 112.7)
XYZxyz(16.0849, 19.2824, 6.7446)
Luminance0.1928 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E39 #3E397E
analogous
#7E6039 #797E39 #567E39
triadic
#797E39 #39797E #7E3979
tetradic
#797E39 #397E60 #3E397E #7E3956
square
#797E39 #397E60 #3E397E #7E3956
split-complementary
#797E39 #39567E #60397E
monochromatic
#282A13 #515426 #797E39 #A1A84C #BABF72

Accessibility & contrast

On white

4.32
#797E39 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.86
#797E39 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E39
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E39#FFFFFF#000000##000000
##797E391.004.324.864.86
#FFFFFF4.321.0021.0021.00
#0000004.8621.001.001.00
##0000004.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#877932
Deuteranopia (green-blind)
#877A3D
Tritanopia (blue-blind)
#80776F
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797e39;
/* rgb */ color: rgb(121, 126, 57);
/* oklch */ color: oklch(57.3% 0.093 112.7);
Tailwind
colors: {
  custom: {
    50: '#a1a372',
    500: '#797e39',
    950: '#000000',
  },
}
SCSS
$custom: #797e39;
$custom-light: #a1a372;
$custom-dark: #000000;
JSON
{
  "hex": "#797e39",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 57
  },
  "hsl": {
    "h": 64.348,
    "s": 37.705,
    "l": 35.882
  },
  "oklch": {
    "l": 0.57346,
    "c": 0.09257,
    "h": 112.7
  },
  "luminance": 0.19282
}

Semantic roles & 50–950 ramp

primary
#797E39
secondary
#6F6AA8
accent
#5ACE63
background
#FAFAF7
surface
#F4F3ED
border
#CECDC8
text
#0F0F08
muted
#7F7F7B

Preview Lab

Preview with #797E39

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

Preview Lab → · Contrast checker → · Palette generator →

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