#797E56#797E56

#797E56 is a mid, muted yellow. Relative luminance 0.197; OKLCH L 57.8% C 0.058 H 114.0°. Best body text is #000000 at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#797E56
RGBrgb(121, 126, 86)
HSLhsl(68, 19%, 42%)
HSVhsv(68, 32%, 49%)
CMYKcmyk(4%, 0%, 31.7%, 50.6%)
CIE-LABlab(51.45, -8.87, 21.21)
CIE-LCHlch(51.45, 22.99, 112.71°)
OKLaboklab(57.83% -0.0236 0.0529)
OKLCHoklch(57.83% 0.058 114)
XYZxyz(17.0257, 19.6587, 11.6999)
Luminance0.1966 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E56 #5B567E
analogous
#7E6F56 #797E56 #657E56
triadic
#797E56 #56797E #7E5679
tetradic
#797E56 #567E6F #5B567E #7E5665
square
#797E56 #567E6F #5B567E #7E5665
split-complementary
#797E56 #56657E #6F567E
monochromatic
#333524 #565A3D #797E56 #999F72 #B4B897

Accessibility & contrast

On white

4.26
#797E56 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.93
#797E56 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E56
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E56#FFFFFF#000000##000000
##797E561.004.264.934.93
#FFFFFF4.261.0021.0021.00
#0000004.9321.001.001.00
##0000004.9321.001.001.00

Color blindness preview

Protanopia (red-blind)
#847A53
Deuteranopia (green-blind)
#837B58
Tritanopia (blue-blind)
#7E7A74
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #797e56;
/* rgb */ color: rgb(121, 126, 86);
/* oklch */ color: oklch(57.8% 0.058 114.0);
Tailwind
colors: {
  custom: {
    50: '#a0a386',
    500: '#797e56',
    950: '#000000',
  },
}
SCSS
$custom: #797e56;
$custom-light: #a0a386;
$custom-dark: #000000;
JSON
{
  "hex": "#797e56",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 86
  },
  "hsl": {
    "h": 67.5,
    "s": 18.868,
    "l": 41.569
  },
  "oklch": {
    "l": 0.57832,
    "c": 0.05794,
    "h": 114
  },
  "luminance": 0.19659
}

Semantic roles & 50–950 ramp

primary
#797E56
secondary
#8E8AA6
accent
#6CBC76
background
#F9FAF8
surface
#F2F3EF
border
#CCCDCA
text
#0F0F0B
muted
#7E7F7C

Preview Lab

Preview with #797E56

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

Preview Lab → · Contrast checker → · Palette generator →

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