#797B1A#797B1A

#797B1A is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.3% C 0.114 H 110.8°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#797B1A
RGBrgb(121, 123, 26)
HSLhsl(61, 65%, 29%)
HSVhsv(61, 79%, 48%)
CMYKcmyk(1.6%, 0%, 78.9%, 51.8%)
CIE-LABlab(49.87, -12.77, 48.71)
CIE-LCHlch(49.87, 50.36, 104.69°)
OKLaboklab(56.34% -0.0404 0.1066)
OKLCHoklch(56.34% 0.114 110.8)
XYZxyz(15.1551, 18.3059, 3.7121)
Luminance0.1830 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B1A #1C1A7B
analogous
#7B4D1A #797B1A #497B1A
triadic
#797B1A #1A797B #7B1A79
tetradic
#797B1A #1A7B4D #1C1A7B #7B1A49
square
#797B1A #1A7B4D #1C1A7B #7B1A49
split-complementary
#797B1A #1A497B #4D1A7B
monochromatic
#191905 #47480F #797B1A #ABAE25 #D2D53A

Accessibility & contrast

On white

4.51
#797B1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#797B1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B1A
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B1A#FFFFFF#000000##000000
##797B1A1.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#857502
Deuteranopia (green-blind)
#867822
Tritanopia (blue-blind)
#827369
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b1a;
/* rgb */ color: rgb(121, 123, 26);
/* oklch */ color: oklch(56.3% 0.114 110.8);
Tailwind
colors: {
  custom: {
    50: '#a3a160',
    500: '#797b1a',
    950: '#000000',
  },
}
SCSS
$custom: #797b1a;
$custom-light: #a3a160;
$custom-dark: #000000;
JSON
{
  "hex": "#797b1a",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 26
  },
  "hsl": {
    "h": 61.237,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.56342,
    "c": 0.11396,
    "h": 110.8
  },
  "luminance": 0.18305
}

Semantic roles & 50–950 ramp

primary
#797B1A
secondary
#4442AF
accent
#40E843
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0E05
muted
#7F7E79

Preview Lab

Preview with #797B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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