#796F16#796F16

#796F16 is a mid, moderate yellow. Relative luminance 0.155; OKLCH L 53.5% C 0.104 H 102.6°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#796F16
RGBrgb(121, 111, 22)
HSLhsl(54, 69%, 28%)
HSVhsv(54, 82%, 47%)
CMYKcmyk(0%, 8.3%, 81.8%, 52.5%)
CIE-LABlab(46.30, -6.29, 46.83)
CIE-LCHlch(46.30, 47.25, 97.64°)
OKLaboklab(53.49% -0.0227 0.1017)
OKLCHoklch(53.49% 0.104 102.6)
XYZxyz(13.7151, 15.4924, 3.0268)
Luminance0.1549 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796F16 #162079
analogous
#793D16 #796F16 #527916
triadic
#796F16 #16796F #6F1679
tetradic
#796F16 #16793D #162079 #791652
square
#796F16 #16793D #162079 #791652
split-complementary
#796F16 #165279 #3D1679
monochromatic
#1A1805 #453F0D #796F16 #AD9F1F #D9C830

Accessibility & contrast

On white

5.12
#796F16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#796F16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796F16
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796F16#FFFFFF#000000##FFFFFF
##796F161.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B00
Deuteranopia (green-blind)
#7D701D
Tritanopia (blue-blind)
#83665F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #796f16;
/* rgb */ color: rgb(121, 111, 22);
/* oklch */ color: oklch(53.5% 0.104 102.6);
Tailwind
colors: {
  custom: {
    50: '#a3985c',
    500: '#796f16',
    950: '#000000',
  },
}
SCSS
$custom: #796f16;
$custom-light: #a3985c;
$custom-dark: #000000;
JSON
{
  "hex": "#796f16",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 22
  },
  "hsl": {
    "h": 53.939,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.53494,
    "c": 0.10422,
    "h": 102.6
  },
  "luminance": 0.15492
}

Semantic roles & 50–950 ramp

primary
#796F16
secondary
#3D48AE
accent
#4EEC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #796F16

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

Preview Lab → · Contrast checker → · Palette generator →

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