#797A16#797A16

#797A16 is a mid, moderate yellow. Relative luminance 0.180; OKLCH L 56.1% C 0.115 H 110.2°. Best body text is #000000 at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#797A16
RGBrgb(121, 122, 22)
HSLhsl(61, 69%, 28%)
HSVhsv(61, 82%, 48%)
CMYKcmyk(0.8%, 0%, 82%, 52.2%)
CIE-LABlab(49.55, -12.39, 49.71)
CIE-LCHlch(49.55, 51.24, 103.99°)
OKLaboklab(56.08% -0.0397 0.1079)
OKLCHoklch(56.08% 0.115 110.2)
XYZxyz(14.9901, 18.0424, 3.4518)
Luminance0.1804 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797A16 #17167A
analogous
#7A4916 #797A16 #477A16
triadic
#797A16 #16797A #7A1679
tetradic
#797A16 #167A49 #17167A #7A1647
square
#797A16 #167A49 #17167A #7A1647
split-complementary
#797A16 #16477A #49167A
monochromatic
#1A1A05 #46460D #797A16 #ACAE1F #D8DA31

Accessibility & contrast

On white

4.56
#797A16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.61
#797A16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797A16
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797A16#FFFFFF#000000##000000
##797A161.004.564.614.61
#FFFFFF4.561.0021.0021.00
#0000004.6121.001.001.00
##0000004.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#847400
Deuteranopia (green-blind)
#85771F
Tritanopia (blue-blind)
#827268
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #797a16;
/* rgb */ color: rgb(121, 122, 22);
/* oklch */ color: oklch(56.1% 0.115 110.2);
Tailwind
colors: {
  custom: {
    50: '#a3a05e',
    500: '#797a16',
    950: '#000000',
  },
}
SCSS
$custom: #797a16;
$custom-light: #a3a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#797a16",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 22
  },
  "hsl": {
    "h": 60.6,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.56082,
    "c": 0.11499,
    "h": 110.2
  },
  "luminance": 0.18042
}

Semantic roles & 50–950 ramp

primary
#797A16
secondary
#3E3DAF
accent
#3CEC3D
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797A16

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

Preview Lab → · Contrast checker → · Palette generator →

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