#797E2F#797E2F

#797E2F is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.2% C 0.102 H 112.6°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#797E2F
RGBrgb(121, 126, 47)
HSLhsl(64, 46%, 34%)
HSVhsv(64, 63%, 49%)
CMYKcmyk(4%, 0%, 62.7%, 50.6%)
CIE-LABlab(50.91, -13.14, 41.17)
CIE-LCHlch(50.91, 43.22, 107.70°)
OKLaboklab(57.23% -0.0393 0.0943)
OKLCHoklch(57.23% 0.102 112.6)
XYZxyz(15.8595, 19.1922, 5.5578)
Luminance0.1919 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E2F #342F7E
analogous
#7E5C2F #797E2F #527E2F
triadic
#797E2F #2F797E #7E2F79
tetradic
#797E2F #2F7E5C #342F7E #7E2F52
square
#797E2F #2F7E5C #342F7E #7E2F52
split-complementary
#797E2F #2F527E #5C2F7E
monochromatic
#23250E #4E511E #797E2F #A4AB40 #BEC563

Accessibility & contrast

On white

4.34
#797E2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#797E2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E2F
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E2F#FFFFFF#000000##000000
##797E2F1.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#877826
Deuteranopia (green-blind)
#877A34
Tritanopia (blue-blind)
#81776D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797e2f;
/* rgb */ color: rgb(121, 126, 47);
/* oklch */ color: oklch(57.2% 0.102 112.6);
Tailwind
colors: {
  custom: {
    50: '#a2a36b',
    500: '#797e2f',
    950: '#000000',
  },
}
SCSS
$custom: #797e2f;
$custom-light: #a2a36b;
$custom-dark: #000000;
JSON
{
  "hex": "#797e2f",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 47
  },
  "hsl": {
    "h": 63.797,
    "s": 45.665,
    "l": 33.922
  },
  "oklch": {
    "l": 0.57228,
    "c": 0.10216,
    "h": 112.6
  },
  "luminance": 0.19192
}

Semantic roles & 50–950 ramp

primary
#797E2F
secondary
#625DAC
accent
#52D55B
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F07
muted
#7F7F7A

Preview Lab

Preview with #797E2F

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

Preview Lab → · Contrast checker → · Palette generator →

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