#797016#797016

#797016 is a mid, moderate yellow. Relative luminance 0.157; OKLCH L 53.7% C 0.105 H 103.3°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#797016
RGBrgb(121, 112, 22)
HSLhsl(55, 69%, 28%)
HSVhsv(55, 82%, 47%)
CMYKcmyk(0%, 7.4%, 81.8%, 52.5%)
CIE-LABlab(46.59, -6.85, 47.09)
CIE-LCHlch(46.59, 47.59, 98.28°)
OKLaboklab(53.73% -0.0242 0.1023)
OKLCHoklch(53.73% 0.105 103.3)
XYZxyz(13.8248, 15.7118, 3.0634)
Luminance0.1571 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797016 #161F79
analogous
#793E16 #797016 #517916
triadic
#797016 #167970 #701679
tetradic
#797016 #16793E #161F79 #791651
square
#797016 #16793E #161F79 #791651
split-complementary
#797016 #165179 #3E1679
monochromatic
#1A1805 #45400D #797016 #ADA01F #D9CA30

Accessibility & contrast

On white

5.07
#797016 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#797016 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797016
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797016#FFFFFF#000000##FFFFFF
##7970161.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C00
Deuteranopia (green-blind)
#7E701D
Tritanopia (blue-blind)
#83675F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #797016;
/* rgb */ color: rgb(121, 112, 22);
/* oklch */ color: oklch(53.7% 0.105 103.3);
Tailwind
colors: {
  custom: {
    50: '#a3985c',
    500: '#797016',
    950: '#000000',
  },
}
SCSS
$custom: #797016;
$custom-light: #a3985c;
$custom-dark: #000000;
JSON
{
  "hex": "#797016",
  "rgb": {
    "r": 121,
    "g": 112,
    "b": 22
  },
  "hsl": {
    "h": 54.545,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.53727,
    "c": 0.10513,
    "h": 103.3
  },
  "luminance": 0.15711
}

Semantic roles & 50–950 ramp

primary
#797016
secondary
#3D47AE
accent
#4CEC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #797016

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

Preview Lab → · Contrast checker → · Palette generator →

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