#797A2F#797A2F

#797A2F is a mid, moderate yellow. Relative luminance 0.182; OKLCH L 56.3% C 0.097 H 109.9°. Best body text is #000000 at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#797A2F
RGBrgb(121, 122, 47)
HSLhsl(61, 44%, 33%)
HSVhsv(61, 61%, 48%)
CMYKcmyk(0.8%, 0%, 61.5%, 52.2%)
CIE-LABlab(49.73, -10.96, 39.88)
CIE-LCHlch(49.73, 41.36, 105.37°)
OKLaboklab(56.28% -0.0331 0.0916)
OKLCHoklch(56.28% 0.097 109.9)
XYZxyz(15.3582, 18.1896, 5.3907)
Luminance0.1819 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797A2F #302F7A
analogous
#7A552F #797A2F #537A2F
triadic
#797A2F #2F797A #7A2F79
tetradic
#797A2F #2F7A55 #302F7A #7A2F53
square
#797A2F #2F7A55 #302F7A #7A2F53
split-complementary
#797A2F #2F537A #552F7A
monochromatic
#21220D #4D4E1E #797A2F #A5A640 #C1C261

Accessibility & contrast

On white

4.53
#797A2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.64
#797A2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797A2F
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797A2F#FFFFFF#000000##000000
##797A2F1.004.534.644.64
#FFFFFF4.531.0021.0021.00
#0000004.6421.001.001.00
##0000004.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#837526
Deuteranopia (green-blind)
#847733
Tritanopia (blue-blind)
#81736A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #797a2f;
/* rgb */ color: rgb(121, 122, 47);
/* oklch */ color: oklch(56.3% 0.097 109.9);
Tailwind
colors: {
  custom: {
    50: '#a2a06b',
    500: '#797a2f',
    950: '#000000',
  },
}
SCSS
$custom: #797a2f;
$custom-light: #a2a06b;
$custom-dark: #000000;
JSON
{
  "hex": "#797a2f",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 47
  },
  "hsl": {
    "h": 60.8,
    "s": 44.379,
    "l": 33.137
  },
  "oklch": {
    "l": 0.56281,
    "c": 0.09737,
    "h": 109.9
  },
  "luminance": 0.18189
}

Semantic roles & 50–950 ramp

primary
#797A2F
secondary
#5D5CA9
accent
#54D455
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #797A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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