#797E3E#797E3E

#797E3E is a mid, moderate yellow. Relative luminance 0.193; OKLCH L 57.4% C 0.087 H 112.8°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#797E3E
RGBrgb(121, 126, 62)
HSLhsl(65, 34%, 37%)
HSVhsv(65, 51%, 49%)
CMYKcmyk(4%, 0%, 50.8%, 50.6%)
CIE-LABlab(51.08, -11.81, 33.91)
CIE-LCHlch(51.08, 35.90, 109.20°)
OKLaboklab(57.41% -0.0338 0.0804)
OKLCHoklch(57.41% 0.087 112.8)
XYZxyz(16.2158, 19.3347, 7.4342)
Luminance0.1933 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E3E #433E7E
analogous
#7E633E #797E3E #597E3E
triadic
#797E3E #3E797E #7E3E79
tetradic
#797E3E #3E7E63 #433E7E #7E3E59
square
#797E3E #3E7E63 #433E7E #7E3E59
split-complementary
#797E3E #3E597E #633E7E
monochromatic
#2A2C16 #52552A #797E3E #A0A752 #B8BD79

Accessibility & contrast

On white

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

On black

4.87
#797E3E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E3E
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E3E#FFFFFF#000000##000000
##797E3E1.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#867938
Deuteranopia (green-blind)
#867A41
Tritanopia (blue-blind)
#80786F
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #797e3e;
/* rgb */ color: rgb(121, 126, 62);
/* oklch */ color: oklch(57.4% 0.087 112.8);
Tailwind
colors: {
  custom: {
    50: '#a1a375',
    500: '#797e3e',
    950: '#000000',
  },
}
SCSS
$custom: #797e3e;
$custom-light: #a1a375;
$custom-dark: #000000;
JSON
{
  "hex": "#797e3e",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 62
  },
  "hsl": {
    "h": 64.688,
    "s": 34.043,
    "l": 36.863
  },
  "oklch": {
    "l": 0.57414,
    "c": 0.08726,
    "h": 112.8
  },
  "luminance": 0.19334
}

Semantic roles & 50–950 ramp

primary
#797E3E
secondary
#7570A7
accent
#5ECA66
background
#FAFAF7
surface
#F3F3ED
border
#CDCDC8
text
#0F0F08
muted
#7F7F7B

Preview Lab

Preview with #797E3E

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

Preview Lab → · Contrast checker → · Palette generator →

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