#797B3D#797B3D

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

Color values

HEX#797B3D
RGBrgb(121, 123, 61)
HSLhsl(62, 34%, 36%)
HSVhsv(62, 50%, 48%)
CMYKcmyk(1.6%, 0%, 50.4%, 51.8%)
CIE-LABlab(50.18, -10.27, 33.35)
CIE-LCHlch(50.18, 34.90, 107.11°)
OKLaboklab(56.69% -0.0295 0.0791)
OKLCHoklch(56.69% 0.084 110.5)
XYZxyz(15.8107, 18.5681, 7.1651)
Luminance0.1857 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B3D #3F3D7B
analogous
#7B5E3D #797B3D #5A7B3D
triadic
#797B3D #3D797B #7B3D79
tetradic
#797B3D #3D7B5E #3F3D7B #7B3D5A
square
#797B3D #3D7B5E #3F3D7B #7B3D5A
split-complementary
#797B3D #3D5A7B #5E3D7B
monochromatic
#292914 #515229 #797B3D #A1A451 #B9BC77

Accessibility & contrast

On white

4.46
#797B3D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.71
#797B3D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B3D
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B3D#FFFFFF#000000##000000
##797B3D1.004.464.714.71
#FFFFFF4.461.0021.0021.00
#0000004.7121.001.001.00
##0000004.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#837637
Deuteranopia (green-blind)
#847840
Tritanopia (blue-blind)
#80746D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b3d;
/* rgb */ color: rgb(121, 123, 61);
/* oklch */ color: oklch(56.7% 0.084 110.5);
Tailwind
colors: {
  custom: {
    50: '#a1a174',
    500: '#797b3d',
    950: '#000000',
  },
}
SCSS
$custom: #797b3d;
$custom-light: #a1a174;
$custom-dark: #000000;
JSON
{
  "hex": "#797b3d",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 61
  },
  "hsl": {
    "h": 61.935,
    "s": 33.696,
    "l": 36.078
  },
  "oklch": {
    "l": 0.56693,
    "c": 0.08447,
    "h": 110.5
  },
  "luminance": 0.18568
}

Semantic roles & 50–950 ramp

primary
#797B3D
secondary
#706EA6
accent
#5ECA61
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0E08
muted
#7F7E7B

Preview Lab

Preview with #797B3D

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

Preview Lab → · Contrast checker → · Palette generator →

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