#797E16#797E16

#797E16 is a mid, moderate yellow. Relative luminance 0.190; OKLCH L 57.0% C 0.119 H 112.5°. Best body text is #000000 at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#797E16
RGBrgb(121, 126, 22)
HSLhsl(63, 70%, 29%)
HSVhsv(63, 83%, 49%)
CMYKcmyk(4%, 0%, 82.5%, 50.6%)
CIE-LABlab(50.74, -14.55, 50.77)
CIE-LCHlch(50.74, 52.81, 105.99°)
OKLaboklab(57.04% -0.0457 0.1102)
OKLCHoklch(57.04% 0.119 112.5)
XYZxyz(15.4914, 19.0450, 3.6189)
Luminance0.1905 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E16 #1B167E
analogous
#7E4F16 #797E16 #457E16
triadic
#797E16 #16797E #7E1679
tetradic
#797E16 #167E4F #1B167E #7E1645
square
#797E16 #167E4F #1B167E #7E1645
split-complementary
#797E16 #16457E #4F167E
monochromatic
#191A05 #474A0D #797E16 #ABB21F #D3DB33

Accessibility & contrast

On white

4.37
#797E16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.81
#797E16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E16
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E16#FFFFFF#000000##000000
##797E161.004.374.814.81
#FFFFFF4.371.0021.0021.00
#0000004.8121.001.001.00
##0000004.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#887800
Deuteranopia (green-blind)
#887A20
Tritanopia (blue-blind)
#82766B
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797e16;
/* rgb */ color: rgb(121, 126, 22);
/* oklch */ color: oklch(57.0% 0.119 112.5);
Tailwind
colors: {
  custom: {
    50: '#a3a35e',
    500: '#797e16',
    950: '#000000',
  },
}
SCSS
$custom: #797e16;
$custom-light: #a3a35e;
$custom-dark: #000000;
JSON
{
  "hex": "#797e16",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 22
  },
  "hsl": {
    "h": 62.885,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.57036,
    "c": 0.11927,
    "h": 112.5
  },
  "luminance": 0.19045
}

Semantic roles & 50–950 ramp

primary
#797E16
secondary
#433DB3
accent
#3BED43
background
#FAFAF5
surface
#F4F3EA
border
#CECDC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #797E16

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

Preview Lab → · Contrast checker → · Palette generator →

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