#797E47#797E47

#797E47 is a mid, moderate yellow. Relative luminance 0.194; OKLCH L 57.6% C 0.077 H 113.1°. Best body text is #000000 at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#797E47
RGBrgb(121, 126, 71)
HSLhsl(65, 28%, 39%)
HSVhsv(65, 44%, 49%)
CMYKcmyk(4%, 0%, 43.7%, 50.6%)
CIE-LABlab(51.20, -10.83, 29.25)
CIE-LCHlch(51.20, 31.19, 110.31°)
OKLaboklab(57.55% -0.0301 0.0708)
OKLCHoklch(57.55% 0.077 113.1)
XYZxyz(16.4835, 19.4418, 8.8443)
Luminance0.1944 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E47 #4C477E
analogous
#7E6747 #797E47 #5D7E47
triadic
#797E47 #47797E #7E4779
tetradic
#797E47 #477E67 #4C477E #7E475D
square
#797E47 #477E67 #4C477E #7E475D
split-complementary
#797E47 #475D7E #67477E
monochromatic
#2E301B #535731 #797E47 #9EA45E #B5BA85

Accessibility & contrast

On white

4.30
#797E47 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.89
#797E47 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E47
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E47#FFFFFF#000000##000000
##797E471.004.304.894.89
#FFFFFF4.301.0021.0021.00
#0000004.8921.001.001.00
##0000004.8921.001.001.00

Color blindness preview

Protanopia (red-blind)
#857943
Deuteranopia (green-blind)
#857B4A
Tritanopia (blue-blind)
#7F7871
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797e47;
/* rgb */ color: rgb(121, 126, 71);
/* oklch */ color: oklch(57.6% 0.077 113.1);
Tailwind
colors: {
  custom: {
    50: '#a1a37b',
    500: '#797e47',
    950: '#000000',
  },
}
SCSS
$custom: #797e47;
$custom-light: #a1a37b;
$custom-dark: #000000;
JSON
{
  "hex": "#797e47",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 71
  },
  "hsl": {
    "h": 65.455,
    "s": 27.919,
    "l": 38.627
  },
  "oklch": {
    "l": 0.57552,
    "c": 0.07694,
    "h": 113.1
  },
  "luminance": 0.19442
}

Semantic roles & 50–950 ramp

primary
#797E47
secondary
#7F7BA6
accent
#64C46C
background
#FAFAF7
surface
#F3F3EE
border
#CDCDC9
text
#0F0F09
muted
#7F7F7B

Preview Lab

Preview with #797E47

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

Preview Lab → · Contrast checker → · Palette generator →

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