#797B16#797B16

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

Color values

HEX#797B16
RGBrgb(121, 123, 22)
HSLhsl(61, 70%, 28%)
HSVhsv(61, 82%, 48%)
CMYKcmyk(1.6%, 0%, 82.1%, 51.8%)
CIE-LABlab(49.84, -12.93, 49.98)
CIE-LCHlch(49.84, 51.62, 104.51°)
OKLaboklab(56.32% -0.0412 0.1085)
OKLCHoklch(56.32% 0.116 110.8)
XYZxyz(15.1135, 18.2892, 3.4929)
Luminance0.1829 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B16 #18167B
analogous
#7B4A16 #797B16 #467B16
triadic
#797B16 #16797B #7B1679
tetradic
#797B16 #167B4A #18167B #7B1646
square
#797B16 #167B4A #18167B #7B1646
split-complementary
#797B16 #16467B #4A167B
monochromatic
#1A1A05 #46470D #797B16 #ACAF1F #D7DA31

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##797B16#FFFFFF#000000##000000
##797B161.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)
#857500
Deuteranopia (green-blind)
#86781F
Tritanopia (blue-blind)
#827369
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b16;
/* rgb */ color: rgb(121, 123, 22);
/* oklch */ color: oklch(56.3% 0.116 110.8);
Tailwind
colors: {
  custom: {
    50: '#a3a05e',
    500: '#797b16',
    950: '#000000',
  },
}
SCSS
$custom: #797b16;
$custom-light: #a3a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#797b16",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 22
  },
  "hsl": {
    "h": 61.188,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.5632,
    "c": 0.11605,
    "h": 110.8
  },
  "luminance": 0.18289
}

Semantic roles & 50–950 ramp

primary
#797B16
secondary
#3F3DB0
accent
#3BEC3F
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797B16

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

Preview Lab → · Contrast checker → · Palette generator →

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