#796A20#796A20

#796A20 is a mid, moderate yellow. Relative luminance 0.145; OKLCH L 52.4% C 0.094 H 97.5°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#796A20
RGBrgb(121, 106, 32)
HSLhsl(50, 58%, 30%)
HSVhsv(50, 74%, 47%)
CMYKcmyk(0%, 12.4%, 73.6%, 52.5%)
CIE-LABlab(44.91, -2.96, 41.67)
CIE-LCHlch(44.91, 41.77, 94.06°)
OKLaboklab(52.41% -0.0122 0.0928)
OKLCHoklch(52.41% 0.094 97.5)
XYZxyz(13.3005, 14.4780, 3.4602)
Luminance0.1448 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796A20 #202F79
analogous
#793E20 #796A20 #5B7920
triadic
#796A20 #20796A #6A2079
tetradic
#796A20 #20793E #202F79 #79205B
square
#796A20 #20793E #202F79 #79205B
split-complementary
#796A20 #205B79 #3E2079
monochromatic
#181506 #494013 #796A20 #A9942D #CEB745

Accessibility & contrast

On white

5.39
#796A20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#796A20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796A20
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796A20#FFFFFF#000000##FFFFFF
##796A201.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756715
Deuteranopia (green-blind)
#796C24
Tritanopia (blue-blind)
#83625B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #796a20;
/* rgb */ color: rgb(121, 106, 32);
/* oklch */ color: oklch(52.4% 0.094 97.5);
Tailwind
colors: {
  custom: {
    50: '#a39460',
    500: '#796a20',
    950: '#000000',
  },
}
SCSS
$custom: #796a20;
$custom-light: #a39460;
$custom-dark: #000000;
JSON
{
  "hex": "#796a20",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 32
  },
  "hsl": {
    "h": 49.888,
    "s": 58.17,
    "l": 30
  },
  "oklch": {
    "l": 0.52411,
    "c": 0.09362,
    "h": 97.5
  },
  "luminance": 0.14477
}

Semantic roles & 50–950 ramp

primary
#796A20
secondary
#4959AC
accent
#61E146
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #796A20

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

Preview Lab → · Contrast checker → · Palette generator →

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