#797E46#797E46

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

Color values

HEX#797E46
RGBrgb(121, 126, 70)
HSLhsl(65, 29%, 38%)
HSVhsv(65, 44%, 49%)
CMYKcmyk(4%, 0%, 44.4%, 50.6%)
CIE-LABlab(51.19, -10.94, 29.77)
CIE-LCHlch(51.19, 31.72, 110.18°)
OKLaboklab(57.54% -0.0306 0.0719)
OKLCHoklch(57.54% 0.078 113)
XYZxyz(16.4517, 19.4291, 8.6767)
Luminance0.1943 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E46 #4B467E
analogous
#7E6746 #797E46 #5D7E46
triadic
#797E46 #46797E #7E4679
tetradic
#797E46 #467E67 #4B467E #7E465D
square
#797E46 #467E67 #4B467E #7E465D
split-complementary
#797E46 #465D7E #67467E
monochromatic
#2D2F1A #535730 #797E46 #9EA55C #B6BB84

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797E46#FFFFFF#000000##000000
##797E461.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)
#857941
Deuteranopia (green-blind)
#857B49
Tritanopia (blue-blind)
#7F7871
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797e46;
/* rgb */ color: rgb(121, 126, 70);
/* oklch */ color: oklch(57.5% 0.078 113.0);
Tailwind
colors: {
  custom: {
    50: '#a1a37a',
    500: '#797e46',
    950: '#000000',
  },
}
SCSS
$custom: #797e46;
$custom-light: #a1a37a;
$custom-dark: #000000;
JSON
{
  "hex": "#797e46",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 70
  },
  "hsl": {
    "h": 65.357,
    "s": 28.571,
    "l": 38.431
  },
  "oklch": {
    "l": 0.57536,
    "c": 0.07813,
    "h": 113
  },
  "luminance": 0.19429
}

Semantic roles & 50–950 ramp

primary
#797E46
secondary
#7E7AA6
accent
#63C56C
background
#FAFAF7
surface
#F3F3EE
border
#CDCDC9
text
#0F0F09
muted
#7F7F7B

Preview Lab

Preview with #797E46

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

Preview Lab → · Contrast checker → · Palette generator →

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