#797B40#797B40

#797B40 is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.7% C 0.081 H 110.4°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#797B40
RGBrgb(121, 123, 64)
HSLhsl(62, 32%, 37%)
HSVhsv(62, 48%, 48%)
CMYKcmyk(1.6%, 0%, 48%, 51.8%)
CIE-LABlab(50.22, -9.96, 31.81)
CIE-LCHlch(50.22, 33.33, 107.38°)
OKLaboklab(56.74% -0.0283 0.076)
OKLCHoklch(56.74% 0.081 110.4)
XYZxyz(15.8938, 18.6013, 7.6027)
Luminance0.1860 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B40 #42407B
analogous
#7B6040 #797B40 #5C7B40
triadic
#797B40 #40797B #7B4079
tetradic
#797B40 #407B60 #42407B #7B405C
square
#797B40 #407B60 #42407B #7B405C
split-complementary
#797B40 #405C7B #60407B
monochromatic
#2A2A16 #51532B #797B40 #A1A355 #B8BA7B

Accessibility & contrast

On white

4.45
#797B40 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#797B40 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B40
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B40#FFFFFF#000000##000000
##797B401.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#83763B
Deuteranopia (green-blind)
#847843
Tritanopia (blue-blind)
#80756D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b40;
/* rgb */ color: rgb(121, 123, 64);
/* oklch */ color: oklch(56.7% 0.081 110.4);
Tailwind
colors: {
  custom: {
    50: '#a1a176',
    500: '#797b40',
    950: '#000000',
  },
}
SCSS
$custom: #797b40;
$custom-light: #a1a176;
$custom-dark: #000000;
JSON
{
  "hex": "#797b40",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 64
  },
  "hsl": {
    "h": 62.034,
    "s": 31.551,
    "l": 36.667
  },
  "oklch": {
    "l": 0.56737,
    "c": 0.08112,
    "h": 110.4
  },
  "luminance": 0.18601
}

Semantic roles & 50–950 ramp

primary
#797B40
secondary
#7472A5
accent
#60C864
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0E08
muted
#7F7E7B

Preview Lab

Preview with #797B40

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

Preview Lab → · Contrast checker → · Palette generator →

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