#797D3E#797D3E

#797D3E is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.2% C 0.086 H 112.0°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#797D3E
RGBrgb(121, 125, 62)
HSLhsl(64, 34%, 37%)
HSVhsv(64, 50%, 49%)
CMYKcmyk(3.2%, 0%, 50.4%, 51%)
CIE-LABlab(50.78, -11.26, 33.55)
CIE-LCHlch(50.78, 35.39, 108.56°)
OKLaboklab(57.18% -0.0323 0.0797)
OKLCHoklch(57.18% 0.086 112)
XYZxyz(16.0886, 19.0803, 7.3918)
Luminance0.1908 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D3E #423E7D
analogous
#7D623E #797D3E #5A7D3E
triadic
#797D3E #3E797D #7D3E79
tetradic
#797D3E #3E7D62 #423E7D #7D3E5A
square
#797D3E #3E7D62 #423E7D #7D3E5A
split-complementary
#797D3E #3E5A7D #623E7D
monochromatic
#2A2B15 #51542A #797D3E #A1A652 #B8BC79

Accessibility & contrast

On white

4.36
#797D3E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#797D3E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797D3E
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797D3E#FFFFFF#000000##000000
##797D3E1.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#857838
Deuteranopia (green-blind)
#857A41
Tritanopia (blue-blind)
#80776E
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797d3e;
/* rgb */ color: rgb(121, 125, 62);
/* oklch */ color: oklch(57.2% 0.086 112.0);
Tailwind
colors: {
  custom: {
    50: '#a1a275',
    500: '#797d3e',
    950: '#000000',
  },
}
SCSS
$custom: #797d3e;
$custom-light: #a1a275;
$custom-dark: #000000;
JSON
{
  "hex": "#797d3e",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 62
  },
  "hsl": {
    "h": 63.81,
    "s": 33.69,
    "l": 36.667
  },
  "oklch": {
    "l": 0.57178,
    "c": 0.08595,
    "h": 112
  },
  "luminance": 0.1908
}

Semantic roles & 50–950 ramp

primary
#797D3E
secondary
#7470A7
accent
#5ECA65
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0F08
muted
#7F7E7B

Preview Lab

Preview with #797D3E

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

Preview Lab → · Contrast checker → · Palette generator →

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