#797216#797216

#797216 is a mid, moderate yellow. Relative luminance 0.162; OKLCH L 54.2% C 0.107 H 104.8°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#797216
RGBrgb(121, 114, 22)
HSLhsl(56, 69%, 28%)
HSVhsv(56, 82%, 47%)
CMYKcmyk(0%, 5.8%, 81.8%, 52.5%)
CIE-LABlab(47.18, -7.97, 47.62)
CIE-LCHlch(47.18, 48.28, 99.51°)
OKLaboklab(54.19% -0.0274 0.1034)
OKLCHoklch(54.19% 0.107 104.8)
XYZxyz(14.0479, 16.1581, 3.1378)
Luminance0.1616 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797216 #161D79
analogous
#794116 #797216 #4E7916
triadic
#797216 #167972 #721679
tetradic
#797216 #167941 #161D79 #79164E
square
#797216 #167941 #161D79 #79164E
split-complementary
#797216 #164E79 #411679
monochromatic
#1A1805 #45410D #797216 #ADA31F #D9CD30

Accessibility & contrast

On white

4.96
#797216 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#797216 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797216
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797216#FFFFFF#000000##FFFFFF
##7972161.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E00
Deuteranopia (green-blind)
#7F721E
Tritanopia (blue-blind)
#836A61
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #797216;
/* rgb */ color: rgb(121, 114, 22);
/* oklch */ color: oklch(54.2% 0.107 104.8);
Tailwind
colors: {
  custom: {
    50: '#a39a5d',
    500: '#797216',
    950: '#000000',
  },
}
SCSS
$custom: #797216;
$custom-light: #a39a5d;
$custom-dark: #000000;
JSON
{
  "hex": "#797216",
  "rgb": {
    "r": 121,
    "g": 114,
    "b": 22
  },
  "hsl": {
    "h": 55.758,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.54194,
    "c": 0.10698,
    "h": 104.8
  },
  "luminance": 0.16158
}

Semantic roles & 50–950 ramp

primary
#797216
secondary
#3D45AE
accent
#48EC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E04
muted
#7F7E79

Preview Lab

Preview with #797216

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

Preview Lab → · Contrast checker → · Palette generator →

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