#797D2F#797D2F

#797D2F is a mid, moderate yellow. Relative luminance 0.189; OKLCH L 57.0% C 0.101 H 111.9°. Best body text is #000000 at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#797D2F
RGBrgb(121, 125, 47)
HSLhsl(63, 45%, 34%)
HSVhsv(63, 62%, 49%)
CMYKcmyk(3.2%, 0%, 62.4%, 51%)
CIE-LABlab(50.61, -12.60, 40.85)
CIE-LCHlch(50.61, 42.75, 107.14°)
OKLaboklab(56.99% -0.0377 0.0936)
OKLCHoklch(56.99% 0.101 111.9)
XYZxyz(15.7323, 18.9378, 5.5154)
Luminance0.1894 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D2F #332F7D
analogous
#7D5A2F #797D2F #527D2F
triadic
#797D2F #2F797D #7D2F79
tetradic
#797D2F #2F7D5A #332F7D #7D2F52
square
#797D2F #2F7D5A #332F7D #7D2F52
split-complementary
#797D2F #2F527D #5A2F7D
monochromatic
#23240E #4E511E #797D2F #A4A940 #BFC462

Accessibility & contrast

On white

4.39
#797D2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.79
#797D2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797D2F
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797D2F#FFFFFF#000000##000000
##797D2F1.004.394.794.79
#FFFFFF4.391.0021.0021.00
#0000004.7921.001.001.00
##0000004.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#867726
Deuteranopia (green-blind)
#867934
Tritanopia (blue-blind)
#81766C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797d2f;
/* rgb */ color: rgb(121, 125, 47);
/* oklch */ color: oklch(57.0% 0.101 111.9);
Tailwind
colors: {
  custom: {
    50: '#a2a26b',
    500: '#797d2f',
    950: '#000000',
  },
}
SCSS
$custom: #797d2f;
$custom-light: #a2a26b;
$custom-dark: #000000;
JSON
{
  "hex": "#797d2f",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 47
  },
  "hsl": {
    "h": 63.077,
    "s": 45.349,
    "l": 33.725
  },
  "oklch": {
    "l": 0.56991,
    "c": 0.10095,
    "h": 111.9
  },
  "luminance": 0.18937
}

Semantic roles & 50–950 ramp

primary
#797D2F
secondary
#615DAB
accent
#53D559
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F07
muted
#7F7E7A

Preview Lab

Preview with #797D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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