#797B41#797B41

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

Color values

HEX#797B41
RGBrgb(121, 123, 65)
HSLhsl(62, 31%, 37%)
HSVhsv(62, 47%, 48%)
CMYKcmyk(1.6%, 0%, 47.2%, 51.8%)
CIE-LABlab(50.23, -9.85, 31.29)
CIE-LCHlch(50.23, 32.81, 107.47°)
OKLaboklab(56.75% -0.0279 0.0749)
OKLCHoklch(56.75% 0.08 110.4)
XYZxyz(15.9225, 18.6128, 7.7539)
Luminance0.1861 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B41 #43417B
analogous
#7B6041 #797B41 #5C7B41
triadic
#797B41 #41797B #7B4179
tetradic
#797B41 #417B60 #43417B #7B415C
square
#797B41 #417B60 #43417B #7B415C
split-complementary
#797B41 #415C7B #60417B
monochromatic
#2A2B17 #52532C #797B41 #A0A356 #B8BA7C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797B41#FFFFFF#000000##000000
##797B411.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)
#83773C
Deuteranopia (green-blind)
#837844
Tritanopia (blue-blind)
#80756D
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b41;
/* rgb */ color: rgb(121, 123, 65);
/* oklch */ color: oklch(56.8% 0.080 110.4);
Tailwind
colors: {
  custom: {
    50: '#a1a177',
    500: '#797b41',
    950: '#000000',
  },
}
SCSS
$custom: #797b41;
$custom-light: #a1a177;
$custom-dark: #000000;
JSON
{
  "hex": "#797b41",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 65
  },
  "hsl": {
    "h": 62.069,
    "s": 30.851,
    "l": 36.863
  },
  "oklch": {
    "l": 0.56752,
    "c": 0.07997,
    "h": 110.4
  },
  "luminance": 0.18613
}

Semantic roles & 50–950 ramp

primary
#797B41
secondary
#7573A5
accent
#61C764
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0E09
muted
#7F7E7B

Preview Lab

Preview with #797B41

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

Preview Lab → · Contrast checker → · Palette generator →

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