#797816#797816

#797816 is a mid, moderate yellow. Relative luminance 0.176; OKLCH L 55.6% C 0.113 H 109.0°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#797816
RGBrgb(121, 120, 22)
HSLhsl(59, 69%, 28%)
HSVhsv(59, 82%, 47%)
CMYKcmyk(0%, 0.8%, 81.8%, 52.5%)
CIE-LABlab(48.95, -11.30, 49.19)
CIE-LCHlch(48.95, 50.47, 102.94°)
OKLaboklab(55.61% -0.0367 0.1068)
OKLCHoklch(55.61% 0.113 109)
XYZxyz(14.7470, 17.5563, 3.3708)
Luminance0.1756 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797816 #161779
analogous
#794616 #797816 #487916
triadic
#797816 #167978 #781679
tetradic
#797816 #167946 #161779 #791648
square
#797816 #167946 #161779 #791648
split-complementary
#797816 #164879 #461679
monochromatic
#1A1A05 #45450D #797816 #ADAB1F #D9D830

Accessibility & contrast

On white

4.66
#797816 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#797816 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #797816
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797816#FFFFFF#000000##FFFFFF
##7978161.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837300
Deuteranopia (green-blind)
#84761F
Tritanopia (blue-blind)
#827066
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #797816;
/* rgb */ color: rgb(121, 120, 22);
/* oklch */ color: oklch(55.6% 0.113 109.0);
Tailwind
colors: {
  custom: {
    50: '#a39e5d',
    500: '#797816',
    950: '#000000',
  },
}
SCSS
$custom: #797816;
$custom-light: #a39e5d;
$custom-dark: #000000;
JSON
{
  "hex": "#797816",
  "rgb": {
    "r": 121,
    "g": 120,
    "b": 22
  },
  "hsl": {
    "h": 59.394,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.55607,
    "c": 0.11291,
    "h": 109
  },
  "luminance": 0.17556
}

Semantic roles & 50–950 ramp

primary
#797816
secondary
#3D3EAE
accent
#3EEC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797816

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

Preview Lab → · Contrast checker → · Palette generator →

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