#797B2A#797B2A

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

Color values

HEX#797B2A
RGBrgb(121, 123, 42)
HSLhsl(61, 49%, 32%)
HSVhsv(61, 66%, 48%)
CMYKcmyk(1.6%, 0%, 65.9%, 51.8%)
CIE-LABlab(49.98, -11.88, 42.46)
CIE-LCHlch(49.98, 44.09, 105.63°)
OKLaboklab(56.47% -0.0362 0.0963)
OKLCHoklch(56.47% 0.103 110.6)
XYZxyz(15.3865, 18.3984, 4.9308)
Luminance0.1840 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B2A #2C2A7B
analogous
#7B542A #797B2A #517B2A
triadic
#797B2A #2A797B #7B2A79
tetradic
#797B2A #2A7B54 #2C2A7B #7B2A51
square
#797B2A #2A7B54 #2C2A7B #7B2A51
split-complementary
#797B2A #2A517B #542A7B
monochromatic
#1F200B #4C4D1A #797B2A #A6A93A #C4C659

Accessibility & contrast

On white

4.49
#797B2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#797B2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B2A
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B2A#FFFFFF#000000##000000
##797B2A1.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#857620
Deuteranopia (green-blind)
#85782F
Tritanopia (blue-blind)
#81736A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b2a;
/* rgb */ color: rgb(121, 123, 42);
/* oklch */ color: oklch(56.5% 0.103 110.6);
Tailwind
colors: {
  custom: {
    50: '#a2a168',
    500: '#797b2a',
    950: '#000000',
  },
}
SCSS
$custom: #797b2a;
$custom-light: #a2a168;
$custom-dark: #000000;
JSON
{
  "hex": "#797b2a",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 42
  },
  "hsl": {
    "h": 61.481,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.56466,
    "c": 0.10288,
    "h": 110.6
  },
  "luminance": 0.18398
}

Semantic roles & 50–950 ramp

primary
#797B2A
secondary
#5755AC
accent
#4FD953
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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