#796D16#796D16

#796D16 is a mid, moderate yellow. Relative luminance 0.151; OKLCH L 53.0% C 0.102 H 101.0°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#796D16
RGBrgb(121, 109, 22)
HSLhsl(53, 69%, 28%)
HSVhsv(53, 82%, 47%)
CMYKcmyk(0%, 9.9%, 81.8%, 52.5%)
CIE-LABlab(45.72, -5.15, 46.31)
CIE-LCHlch(45.72, 46.59, 96.35°)
OKLaboklab(53.03% -0.0195 0.1006)
OKLCHoklch(53.03% 0.102 101)
XYZxyz(13.4993, 15.0608, 2.9549)
Luminance0.1506 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796D16 #162279
analogous
#793B16 #796D16 #537916
triadic
#796D16 #16796D #6D1679
tetradic
#796D16 #16793B #162279 #791653
square
#796D16 #16793B #162279 #791653
split-complementary
#796D16 #165379 #3B1679
monochromatic
#1A1705 #453E0D #796D16 #AD9C1F #D9C530

Accessibility & contrast

On white

5.23
#796D16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#796D16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796D16
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796D16#FFFFFF#000000##FFFFFF
##796D161.005.234.015.23
#FFFFFF5.231.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A01
Deuteranopia (green-blind)
#7C6E1D
Tritanopia (blue-blind)
#83645D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796d16;
/* rgb */ color: rgb(121, 109, 22);
/* oklch */ color: oklch(53.0% 0.102 101.0);
Tailwind
colors: {
  custom: {
    50: '#a3965c',
    500: '#796d16',
    950: '#000000',
  },
}
SCSS
$custom: #796d16;
$custom-light: #a3965c;
$custom-dark: #000000;
JSON
{
  "hex": "#796d16",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 22
  },
  "hsl": {
    "h": 52.727,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.5303,
    "c": 0.10247,
    "h": 101
  },
  "luminance": 0.1506
}

Semantic roles & 50–950 ramp

primary
#796D16
secondary
#3D4AAE
accent
#51EC3C
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #796D16

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

Preview Lab → · Contrast checker → · Palette generator →

#796D16 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva