#797A40#797A40

#797A40 is a mid, moderate yellow. Relative luminance 0.184; OKLCH L 56.5% C 0.080 H 109.6°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#797A40
RGBrgb(121, 122, 64)
HSLhsl(61, 31%, 36%)
HSVhsv(61, 48%, 48%)
CMYKcmyk(0.8%, 0%, 47.5%, 52.2%)
CIE-LABlab(49.92, -9.40, 31.45)
CIE-LCHlch(49.92, 32.83, 106.64°)
OKLaboklab(56.5% -0.0267 0.0752)
OKLCHoklch(56.5% 0.08 109.6)
XYZxyz(15.7704, 18.3545, 7.5615)
Luminance0.1835 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797A40 #41407A
analogous
#7A5E40 #797A40 #5C7A40
triadic
#797A40 #40797A #7A4079
tetradic
#797A40 #407A5E #41407A #7A405C
square
#797A40 #407A5E #41407A #7A405C
split-complementary
#797A40 #405C7A #5E407A
monochromatic
#292A16 #51522B #797A40 #A1A255 #B9BA7B

Accessibility & contrast

On white

4.50
#797A40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#797A40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797A40
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797A40#FFFFFF#000000##000000
##797A401.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#82763B
Deuteranopia (green-blind)
#837843
Tritanopia (blue-blind)
#80746C
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797a40;
/* rgb */ color: rgb(121, 122, 64);
/* oklch */ color: oklch(56.5% 0.080 109.6);
Tailwind
colors: {
  custom: {
    50: '#a1a076',
    500: '#797a40',
    950: '#000000',
  },
}
SCSS
$custom: #797a40;
$custom-light: #a1a076;
$custom-dark: #000000;
JSON
{
  "hex": "#797a40",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 64
  },
  "hsl": {
    "h": 61.034,
    "s": 31.183,
    "l": 36.471
  },
  "oklch": {
    "l": 0.56503,
    "c": 0.07983,
    "h": 109.6
  },
  "luminance": 0.18354
}

Semantic roles & 50–950 ramp

primary
#797A40
secondary
#7272A4
accent
#60C762
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0E08
muted
#7F7E7B

Preview Lab

Preview with #797A40

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

Preview Lab → · Contrast checker → · Palette generator →

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