#797B2F#797B2F

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

Color values

HEX#797B2F
RGBrgb(121, 123, 47)
HSLhsl(62, 45%, 33%)
HSVhsv(62, 62%, 48%)
CMYKcmyk(1.6%, 0%, 61.8%, 51.8%)
CIE-LABlab(50.02, -11.51, 40.20)
CIE-LCHlch(50.02, 41.82, 105.98°)
OKLaboklab(56.52% -0.0346 0.0923)
OKLCHoklch(56.52% 0.099 110.6)
XYZxyz(15.4816, 18.4365, 5.4318)
Luminance0.1844 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B2F #312F7B
analogous
#7B572F #797B2F #537B2F
triadic
#797B2F #2F797B #7B2F79
tetradic
#797B2F #2F7B57 #312F7B #7B2F53
square
#797B2F #2F7B57 #312F7B #7B2F53
split-complementary
#797B2F #2F537B #572F7B
monochromatic
#22220D #4D4F1E #797B2F #A5A740 #C0C362

Accessibility & contrast

On white

4.48
#797B2F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#797B2F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B2F
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B2F#FFFFFF#000000##000000
##797B2F1.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#847626
Deuteranopia (green-blind)
#857834
Tritanopia (blue-blind)
#81746B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b2f;
/* rgb */ color: rgb(121, 123, 47);
/* oklch */ color: oklch(56.5% 0.099 110.6);
Tailwind
colors: {
  custom: {
    50: '#a2a16b',
    500: '#797b2f',
    950: '#000000',
  },
}
SCSS
$custom: #797b2f;
$custom-light: #a2a16b;
$custom-dark: #000000;
JSON
{
  "hex": "#797b2f",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 47
  },
  "hsl": {
    "h": 61.579,
    "s": 44.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.56517,
    "c": 0.09855,
    "h": 110.6
  },
  "luminance": 0.18436
}

Semantic roles & 50–950 ramp

primary
#797B2F
secondary
#5E5CAA
accent
#53D457
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E07
muted
#7F7E7A

Preview Lab

Preview with #797B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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