#797E42#797E42

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

Color values

HEX#797E42
RGBrgb(121, 126, 66)
HSLhsl(65, 31%, 38%)
HSVhsv(65, 48%, 49%)
CMYKcmyk(4%, 0%, 47.6%, 50.6%)
CIE-LABlab(51.13, -11.39, 31.86)
CIE-LCHlch(51.13, 33.83, 109.67°)
OKLaboklab(57.47% -0.0322 0.0763)
OKLCHoklch(57.47% 0.083 112.9)
XYZxyz(16.3296, 19.3803, 8.0337)
Luminance0.1938 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E42 #47427E
analogous
#7E6542 #797E42 #5B7E42
triadic
#797E42 #42797E #7E4279
tetradic
#797E42 #427E65 #47427E #7E425B
square
#797E42 #427E65 #47427E #7E425B
split-complementary
#797E42 #425B7E #65427E
monochromatic
#2C2E18 #52562D #797E42 #A0A657 #B7BC7F

Accessibility & contrast

On white

4.31
#797E42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.88
#797E42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E42
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E42#FFFFFF#000000##000000
##797E421.004.314.884.88
#FFFFFF4.311.0021.0021.00
#0000004.8821.001.001.00
##0000004.8821.001.001.00

Color blindness preview

Protanopia (red-blind)
#86793D
Deuteranopia (green-blind)
#867B45
Tritanopia (blue-blind)
#807870
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797e42;
/* rgb */ color: rgb(121, 126, 66);
/* oklch */ color: oklch(57.5% 0.083 112.9);
Tailwind
colors: {
  custom: {
    50: '#a1a378',
    500: '#797e42',
    950: '#000000',
  },
}
SCSS
$custom: #797e42;
$custom-light: #a1a378;
$custom-dark: #000000;
JSON
{
  "hex": "#797e42",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 66
  },
  "hsl": {
    "h": 65,
    "s": 31.25,
    "l": 37.647
  },
  "oklch": {
    "l": 0.57473,
    "c": 0.08278,
    "h": 112.9
  },
  "luminance": 0.1938
}

Semantic roles & 50–950 ramp

primary
#797E42
secondary
#7975A7
accent
#60C769
background
#FAFAF7
surface
#F3F3ED
border
#CDCDC8
text
#0F0F09
muted
#7F7F7B

Preview Lab

Preview with #797E42

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

Preview Lab → · Contrast checker → · Palette generator →

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