#797E4B#797E4B

#797E4B is a mid, moderate yellow. Relative luminance 0.195; OKLCH L 57.6% C 0.072 H 113.2°. Best body text is #000000 at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#797E4B
RGBrgb(121, 126, 75)
HSLhsl(66, 25%, 39%)
HSVhsv(66, 40%, 49%)
CMYKcmyk(4%, 0%, 40.5%, 50.6%)
CIE-LABlab(51.26, -10.34, 27.13)
CIE-LCHlch(51.26, 29.03, 110.87°)
OKLaboklab(57.62% -0.0284 0.0662)
OKLCHoklch(57.62% 0.072 113.2)
XYZxyz(16.6162, 19.4949, 9.5428)
Luminance0.1950 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E4B #504B7E
analogous
#7E6A4B #797E4B #607E4B
triadic
#797E4B #4B797E #7E4B79
tetradic
#797E4B #4B7E6A #504B7E #7E4B60
square
#797E4B #4B7E6A #504B7E #7E4B60
split-complementary
#797E4B #4B607E #6A4B7E
monochromatic
#2F311D #545834 #797E4B #9CA364 #B5B98A

Accessibility & contrast

On white

4.29
#797E4B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.90
#797E4B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E4B
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E4B#FFFFFF#000000##000000
##797E4B1.004.294.904.90
#FFFFFF4.291.0021.0021.00
#0000004.9021.001.001.00
##0000004.9021.001.001.00

Color blindness preview

Protanopia (red-blind)
#857A47
Deuteranopia (green-blind)
#857B4D
Tritanopia (blue-blind)
#7F7971
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797e4b;
/* rgb */ color: rgb(121, 126, 75);
/* oklch */ color: oklch(57.6% 0.072 113.2);
Tailwind
colors: {
  custom: {
    50: '#a0a37e',
    500: '#797e4b',
    950: '#000000',
  },
}
SCSS
$custom: #797e4b;
$custom-light: #a0a37e;
$custom-dark: #000000;
JSON
{
  "hex": "#797e4b",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 75
  },
  "hsl": {
    "h": 65.882,
    "s": 25.373,
    "l": 39.412
  },
  "oklch": {
    "l": 0.57621,
    "c": 0.07208,
    "h": 113.2
  },
  "luminance": 0.19495
}

Semantic roles & 50–950 ramp

primary
#797E4B
secondary
#837FA6
accent
#66C26F
background
#F9FAF7
surface
#F2F3EE
border
#CCCDC9
text
#0F0F0A
muted
#7E7F7C

Preview Lab

Preview with #797E4B

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

Preview Lab → · Contrast checker → · Palette generator →

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