#797416#797416

#797416 is a mid, moderate yellow. Relative luminance 0.166; OKLCH L 54.7% C 0.109 H 106.3°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#797416
RGBrgb(121, 116, 22)
HSLhsl(57, 69%, 28%)
HSVhsv(57, 82%, 47%)
CMYKcmyk(0%, 4.1%, 81.8%, 52.5%)
CIE-LABlab(47.77, -9.09, 48.14)
CIE-LCHlch(47.77, 48.99, 100.69°)
OKLaboklab(54.66% -0.0305 0.1045)
OKLCHoklch(54.66% 0.109 106.3)
XYZxyz(14.2760, 16.6142, 3.2138)
Luminance0.1661 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797416 #161B79
analogous
#794216 #797416 #4C7916
triadic
#797416 #167974 #741679
tetradic
#797416 #167942 #161B79 #79164C
square
#797416 #167942 #161B79 #79164C
split-complementary
#797416 #164C79 #421679
monochromatic
#1A1905 #45420D #797416 #ADA61F #D9D130

Accessibility & contrast

On white

4.86
#797416 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#797416 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797416
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797416#FFFFFF#000000##FFFFFF
##7974161.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F6F00
Deuteranopia (green-blind)
#81731E
Tritanopia (blue-blind)
#836C63
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #797416;
/* rgb */ color: rgb(121, 116, 22);
/* oklch */ color: oklch(54.7% 0.109 106.3);
Tailwind
colors: {
  custom: {
    50: '#a39b5d',
    500: '#797416',
    950: '#000000',
  },
}
SCSS
$custom: #797416;
$custom-light: #a39b5d;
$custom-dark: #000000;
JSON
{
  "hex": "#797416",
  "rgb": {
    "r": 121,
    "g": 116,
    "b": 22
  },
  "hsl": {
    "h": 56.97,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.54663,
    "c": 0.1089,
    "h": 106.3
  },
  "luminance": 0.16614
}

Semantic roles & 50–950 ramp

primary
#797416
secondary
#3D42AE
accent
#45EC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797416

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

Preview Lab → · Contrast checker → · Palette generator →

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