#796D20#796D20

#796D20 is a mid, moderate yellow. Relative luminance 0.151; OKLCH L 53.1% C 0.096 H 100.2°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#796D20
RGBrgb(121, 109, 32)
HSLhsl(52, 58%, 30%)
HSVhsv(52, 74%, 47%)
CMYKcmyk(0%, 9.9%, 73.6%, 52.5%)
CIE-LABlab(45.78, -4.68, 42.54)
CIE-LCHlch(45.78, 42.79, 96.28°)
OKLaboklab(53.1% -0.0171 0.0947)
OKLCHoklch(53.1% 0.096 100.2)
XYZxyz(13.6151, 15.1071, 3.5650)
Luminance0.1511 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796D20 #202C79
analogous
#794020 #796D20 #597920
triadic
#796D20 #20796D #6D2079
tetradic
#796D20 #207940 #202C79 #792059
square
#796D20 #207940 #202C79 #792059
split-complementary
#796D20 #205979 #402079
monochromatic
#181606 #494113 #796D20 #A9992D #CEBC45

Accessibility & contrast

On white

5.22
#796D20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#796D20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796D20
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796D20#FFFFFF#000000##FFFFFF
##796D201.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A14
Deuteranopia (green-blind)
#7B6E25
Tritanopia (blue-blind)
#83655E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796d20;
/* rgb */ color: rgb(121, 109, 32);
/* oklch */ color: oklch(53.1% 0.096 100.2);
Tailwind
colors: {
  custom: {
    50: '#a39661',
    500: '#796d20',
    950: '#000000',
  },
}
SCSS
$custom: #796d20;
$custom-light: #a39661;
$custom-dark: #000000;
JSON
{
  "hex": "#796d20",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 32
  },
  "hsl": {
    "h": 51.91,
    "s": 58.17,
    "l": 30
  },
  "oklch": {
    "l": 0.531,
    "c": 0.09618,
    "h": 100.2
  },
  "luminance": 0.15107
}

Semantic roles & 50–950 ramp

primary
#796D20
secondary
#4956AC
accent
#5BE146
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #796D20

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

Preview Lab → · Contrast checker → · Palette generator →

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