#797916#797916

#797916 is a mid, moderate yellow. Relative luminance 0.178; OKLCH L 55.8% C 0.114 H 109.6°. Best body text is #FFFFFF at 4.61:1 contrast (WCAG AA passes).

Color values

HEX#797916
RGBrgb(121, 121, 22)
HSLhsl(60, 69%, 28%)
HSVhsv(60, 82%, 47%)
CMYKcmyk(0%, 0%, 81.8%, 52.5%)
CIE-LABlab(49.25, -11.85, 49.45)
CIE-LCHlch(49.25, 50.85, 103.47°)
OKLaboklab(55.84% -0.0382 0.1074)
OKLCHoklch(55.84% 0.114 109.6)
XYZxyz(14.8679, 17.7981, 3.4111)
Luminance0.1780 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797916 #161679
analogous
#794716 #797916 #477916
triadic
#797916 #167979 #791679
tetradic
#797916 #167947 #161679 #791647
square
#797916 #167947 #161679 #791647
split-complementary
#797916 #164779 #471679
monochromatic
#1A1A05 #45450D #797916 #ADAD1F #D9D930

Accessibility & contrast

On white

4.61
#797916 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#797916 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #797916
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797916#FFFFFF#000000##FFFFFF
##7979161.004.614.564.61
#FFFFFF4.611.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#85761F
Tritanopia (blue-blind)
#827167
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #797916;
/* rgb */ color: rgb(121, 121, 22);
/* oklch */ color: oklch(55.8% 0.114 109.6);
Tailwind
colors: {
  custom: {
    50: '#a39f5e',
    500: '#797916',
    950: '#000000',
  },
}
SCSS
$custom: #797916;
$custom-light: #a39f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#797916",
  "rgb": {
    "r": 121,
    "g": 121,
    "b": 22
  },
  "hsl": {
    "h": 60,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.55844,
    "c": 0.11394,
    "h": 109.6
  },
  "luminance": 0.17798
}

Semantic roles & 50–950 ramp

primary
#797916
secondary
#3D3DAE
accent
#3CEC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797916

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

Preview Lab → · Contrast checker → · Palette generator →

#797916 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva