#797E2A#797E2A

#797E2A is a mid, moderate yellow. Relative luminance 0.192; OKLCH L 57.2% C 0.106 H 112.6°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#797E2A
RGBrgb(121, 126, 42)
HSLhsl(64, 50%, 33%)
HSVhsv(64, 67%, 49%)
CMYKcmyk(4%, 0%, 66.7%, 50.6%)
CIE-LABlab(50.87, -13.51, 43.40)
CIE-LCHlch(50.87, 45.45, 107.29°)
OKLaboklab(57.18% -0.0408 0.0983)
OKLCHoklch(57.18% 0.106 112.6)
XYZxyz(15.7644, 19.1542, 5.0567)
Luminance0.1915 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E2A #2F2A7E
analogous
#7E592A #797E2A #4F7E2A
triadic
#797E2A #2A797E #7E2A79
tetradic
#797E2A #2A7E59 #2F2A7E #7E2A4F
square
#797E2A #2A7E59 #2F2A7E #7E2A4F
split-complementary
#797E2A #2A4F7E #592A7E
monochromatic
#21220B #4D501B #797E2A #A5AC39 #C2C85A

Accessibility & contrast

On white

4.35
#797E2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#797E2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E2A
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E2A#FFFFFF#000000##000000
##797E2A1.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#87781F
Deuteranopia (green-blind)
#887A30
Tritanopia (blue-blind)
#81766D
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797e2a;
/* rgb */ color: rgb(121, 126, 42);
/* oklch */ color: oklch(57.2% 0.106 112.6);
Tailwind
colors: {
  custom: {
    50: '#a2a368',
    500: '#797e2a',
    950: '#000000',
  },
}
SCSS
$custom: #797e2a;
$custom-light: #a2a368;
$custom-dark: #000000;
JSON
{
  "hex": "#797e2a",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 42
  },
  "hsl": {
    "h": 63.571,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.57179,
    "c": 0.1064,
    "h": 112.6
  },
  "luminance": 0.19154
}

Semantic roles & 50–950 ramp

primary
#797E2A
secondary
#5B56AE
accent
#4EDA57
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #797E2A

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

Preview Lab → · Contrast checker → · Palette generator →

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