#796B16#796B16

#796B16 is a mid, moderate yellow. Relative luminance 0.146; OKLCH L 52.6% C 0.101 H 99.3°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#796B16
RGBrgb(121, 107, 22)
HSLhsl(52, 69%, 28%)
HSVhsv(52, 82%, 47%)
CMYKcmyk(0%, 11.6%, 81.8%, 52.5%)
CIE-LABlab(45.14, -4.01, 45.78)
CIE-LCHlch(45.14, 45.96, 95.01°)
OKLaboklab(52.57% -0.0163 0.0995)
OKLCHoklch(52.57% 0.101 99.3)
XYZxyz(13.2883, 14.6389, 2.8846)
Luminance0.1464 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796B16 #162479
analogous
#793916 #796B16 #557916
triadic
#796B16 #16796B #6B1679
tetradic
#796B16 #167939 #162479 #791655
square
#796B16 #167939 #162479 #791655
split-complementary
#796B16 #165579 #391679
monochromatic
#1A1705 #453D0D #796B16 #AD991F #D9C130

Accessibility & contrast

On white

5.35
#796B16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#796B16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796B16
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796B16#FFFFFF#000000##FFFFFF
##796B161.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766802
Deuteranopia (green-blind)
#7A6D1C
Tritanopia (blue-blind)
#83625B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #796b16;
/* rgb */ color: rgb(121, 107, 22);
/* oklch */ color: oklch(52.6% 0.101 99.3);
Tailwind
colors: {
  custom: {
    50: '#a3955c',
    500: '#796b16',
    950: '#000000',
  },
}
SCSS
$custom: #796b16;
$custom-light: #a3955c;
$custom-dark: #000000;
JSON
{
  "hex": "#796b16",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 22
  },
  "hsl": {
    "h": 51.515,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.52568,
    "c": 0.1008,
    "h": 99.3
  },
  "luminance": 0.14638
}

Semantic roles & 50–950 ramp

primary
#796B16
secondary
#3D4DAE
accent
#55EC3C
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #796B16

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

Preview Lab → · Contrast checker → · Palette generator →

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