#796A16#796A16

#796A16 is a mid, moderate yellow. Relative luminance 0.144; OKLCH L 52.3% C 0.100 H 98.4°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#796A16
RGBrgb(121, 106, 22)
HSLhsl(51, 69%, 28%)
HSVhsv(51, 82%, 47%)
CMYKcmyk(0%, 12.4%, 81.8%, 52.5%)
CIE-LABlab(44.85, -3.44, 45.52)
CIE-LCHlch(44.85, 45.65, 94.32°)
OKLaboklab(52.34% -0.0146 0.0989)
OKLCHoklch(52.34% 0.1 98.4)
XYZxyz(13.1847, 14.4316, 2.8500)
Luminance0.1443 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796A16 #162579
analogous
#793816 #796A16 #567916
triadic
#796A16 #16796A #6A1679
tetradic
#796A16 #167938 #162579 #791656
square
#796A16 #167938 #162579 #791656
split-complementary
#796A16 #165679 #381679
monochromatic
#1A1705 #453D0D #796A16 #AD971F #D9C030

Accessibility & contrast

On white

5.40
#796A16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#796A16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796A16
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796A16#FFFFFF#000000##FFFFFF
##796A161.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756703
Deuteranopia (green-blind)
#796C1C
Tritanopia (blue-blind)
#83615A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #796a16;
/* rgb */ color: rgb(121, 106, 22);
/* oklch */ color: oklch(52.3% 0.100 98.4);
Tailwind
colors: {
  custom: {
    50: '#a3945b',
    500: '#796a16',
    950: '#000000',
  },
}
SCSS
$custom: #796a16;
$custom-light: #a3945b;
$custom-dark: #000000;
JSON
{
  "hex": "#796a16",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 22
  },
  "hsl": {
    "h": 50.909,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.52338,
    "c": 0.1,
    "h": 98.4
  },
  "luminance": 0.14431
}

Semantic roles & 50–950 ramp

primary
#796A16
secondary
#3D4EAE
accent
#56EC3C
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #796A16

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

Preview Lab → · Contrast checker → · Palette generator →

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