#797516#797516

#797516 is a mid, moderate yellow. Relative luminance 0.168; OKLCH L 54.9% C 0.110 H 107.0°. Best body text is #FFFFFF at 4.81:1 contrast (WCAG AA passes).

Color values

HEX#797516
RGBrgb(121, 117, 22)
HSLhsl(58, 69%, 28%)
HSVhsv(58, 82%, 47%)
CMYKcmyk(0%, 3.3%, 81.8%, 52.5%)
CIE-LABlab(48.07, -9.64, 48.40)
CIE-LCHlch(48.07, 49.35, 101.27°)
OKLaboklab(54.9% -0.0321 0.1051)
OKLCHoklch(54.9% 0.11 107)
XYZxyz(14.3919, 16.8460, 3.2524)
Luminance0.1684 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797516 #161A79
analogous
#794316 #797516 #4B7916
triadic
#797516 #167975 #751679
tetradic
#797516 #167943 #161A79 #79164B
square
#797516 #167943 #161A79 #79164B
split-complementary
#797516 #164B79 #431679
monochromatic
#1A1905 #45430D #797516 #ADA71F #D9D330

Accessibility & contrast

On white

4.81
#797516 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.37
#797516 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797516
4.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797516#FFFFFF#000000##FFFFFF
##7975161.004.814.374.81
#FFFFFF4.811.0021.001.00
#0000004.3721.001.0021.00
##FFFFFF4.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807000
Deuteranopia (green-blind)
#82741E
Tritanopia (blue-blind)
#826D64
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #797516;
/* rgb */ color: rgb(121, 117, 22);
/* oklch */ color: oklch(54.9% 0.110 107.0);
Tailwind
colors: {
  custom: {
    50: '#a39c5d',
    500: '#797516',
    950: '#000000',
  },
}
SCSS
$custom: #797516;
$custom-light: #a39c5d;
$custom-dark: #000000;
JSON
{
  "hex": "#797516",
  "rgb": {
    "r": 121,
    "g": 117,
    "b": 22
  },
  "hsl": {
    "h": 57.576,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.54899,
    "c": 0.10988,
    "h": 107
  },
  "luminance": 0.16845
}

Semantic roles & 50–950 ramp

primary
#797516
secondary
#3D41AE
accent
#43EC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797516

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

Preview Lab → · Contrast checker → · Palette generator →

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