#796916#796916

#796916 is a mid, moderate yellow. Relative luminance 0.142; OKLCH L 52.1% C 0.099 H 97.5°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#796916
RGBrgb(121, 105, 22)
HSLhsl(50, 69%, 28%)
HSVhsv(50, 82%, 47%)
CMYKcmyk(0%, 13.2%, 81.8%, 52.5%)
CIE-LABlab(44.56, -2.86, 45.26)
CIE-LCHlch(44.56, 45.35, 93.62°)
OKLaboklab(52.11% -0.013 0.0984)
OKLCHoklch(52.11% 0.099 97.5)
XYZxyz(13.0822, 14.2267, 2.8159)
Luminance0.1423 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796916 #162679
analogous
#793716 #796916 #577916
triadic
#796916 #167969 #691679
tetradic
#796916 #167937 #162679 #791657
square
#796916 #167937 #162679 #791657
split-complementary
#796916 #165779 #371679
monochromatic
#1A1605 #453C0D #796916 #AD961F #D9BE30

Accessibility & contrast

On white

5.46
#796916 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#796916 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796916
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796916#FFFFFF#000000##FFFFFF
##7969161.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746603
Deuteranopia (green-blind)
#796C1C
Tritanopia (blue-blind)
#836059
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #796916;
/* rgb */ color: rgb(121, 105, 22);
/* oklch */ color: oklch(52.1% 0.099 97.5);
Tailwind
colors: {
  custom: {
    50: '#a3935b',
    500: '#796916',
    950: '#000000',
  },
}
SCSS
$custom: #796916;
$custom-light: #a3935b;
$custom-dark: #000000;
JSON
{
  "hex": "#796916",
  "rgb": {
    "r": 121,
    "g": 105,
    "b": 22
  },
  "hsl": {
    "h": 50.303,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.52109,
    "c": 0.09922,
    "h": 97.5
  },
  "luminance": 0.14226
}

Semantic roles & 50–950 ramp

primary
#796916
secondary
#3D4FAE
accent
#58EC3C
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #796916

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

Preview Lab → · Contrast checker → · Palette generator →

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