#797C40#797C40

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

Color values

HEX#797C40
RGBrgb(121, 124, 64)
HSLhsl(63, 32%, 37%)
HSVhsv(63, 48%, 49%)
CMYKcmyk(2.4%, 0%, 48.4%, 51.4%)
CIE-LABlab(50.51, -10.51, 32.17)
CIE-LCHlch(50.51, 33.84, 108.09°)
OKLaboklab(56.97% -0.0299 0.0768)
OKLCHoklch(56.97% 0.082 111.3)
XYZxyz(16.0185, 18.8507, 7.6442)
Luminance0.1885 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C40 #43407C
analogous
#7C6140 #797C40 #5B7C40
triadic
#797C40 #40797C #7C4079
tetradic
#797C40 #407C61 #43407C #7C405B
square
#797C40 #407C61 #43407C #7C405B
split-complementary
#797C40 #405B7C #61407C
monochromatic
#2A2B16 #52542B #797C40 #A0A455 #B8BB7B

Accessibility & contrast

On white

4.40
#797C40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#797C40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797C40
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797C40#FFFFFF#000000##000000
##797C401.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#84773B
Deuteranopia (green-blind)
#847943
Tritanopia (blue-blind)
#80766E
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797c40;
/* rgb */ color: rgb(121, 124, 64);
/* oklch */ color: oklch(57.0% 0.082 111.3);
Tailwind
colors: {
  custom: {
    50: '#a1a176',
    500: '#797c40',
    950: '#000000',
  },
}
SCSS
$custom: #797c40;
$custom-light: #a1a176;
$custom-dark: #000000;
JSON
{
  "hex": "#797c40",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 64
  },
  "hsl": {
    "h": 63,
    "s": 31.915,
    "l": 36.863
  },
  "oklch": {
    "l": 0.56972,
    "c": 0.08242,
    "h": 111.3
  },
  "luminance": 0.1885
}

Semantic roles & 50–950 ramp

primary
#797C40
secondary
#7572A6
accent
#60C865
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0F08
muted
#7F7E7B

Preview Lab

Preview with #797C40

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

Preview Lab → · Contrast checker → · Palette generator →

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