#797E4E#797E4E

#797E4E is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.7% C 0.068 H 113.4°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#797E4E
RGBrgb(121, 126, 78)
HSLhsl(66, 24%, 40%)
HSVhsv(66, 38%, 49%)
CMYKcmyk(4%, 0%, 38.1%, 50.6%)
CIE-LABlab(51.31, -9.96, 25.53)
CIE-LCHlch(51.31, 27.40, 111.32°)
OKLaboklab(57.68% -0.0271 0.0627)
OKLCHoklch(57.68% 0.068 113.4)
XYZxyz(16.7213, 19.5369, 10.0964)
Luminance0.1954 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E4E #534E7E
analogous
#7E6B4E #797E4E #617E4E
triadic
#797E4E #4E797E #7E4E79
tetradic
#797E4E #4E7E6B #534E7E #7E4E61
square
#797E4E #4E7E6B #534E7E #7E4E61
split-complementary
#797E4E #4E617E #6B4E7E
monochromatic
#30321F #555837 #797E4E #9BA168 #B4B98E

Accessibility & contrast

On white

4.28
#797E4E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#797E4E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E4E
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E4E#FFFFFF#000000##000000
##797E4E1.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#857A4A
Deuteranopia (green-blind)
#847B50
Tritanopia (blue-blind)
#7E7972
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797e4e;
/* rgb */ color: rgb(121, 126, 78);
/* oklch */ color: oklch(57.7% 0.068 113.4);
Tailwind
colors: {
  custom: {
    50: '#a0a380',
    500: '#797e4e',
    950: '#000000',
  },
}
SCSS
$custom: #797e4e;
$custom-light: #a0a380;
$custom-dark: #000000;
JSON
{
  "hex": "#797e4e",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 78
  },
  "hsl": {
    "h": 66.25,
    "s": 23.529,
    "l": 40
  },
  "oklch": {
    "l": 0.57675,
    "c": 0.06832,
    "h": 113.4
  },
  "luminance": 0.19537
}

Semantic roles & 50–950 ramp

primary
#797E4E
secondary
#8682A6
accent
#68C071
background
#F9FAF7
surface
#F2F3EE
border
#CCCDC9
text
#0F0F0A
muted
#7E7F7C

Preview Lab

Preview with #797E4E

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

Preview Lab → · Contrast checker → · Palette generator →

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