#796C20#796C20

#796C20 is a mid, moderate yellow. Relative luminance 0.149; OKLCH L 52.9% C 0.095 H 99.3°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#796C20
RGBrgb(121, 108, 32)
HSLhsl(51, 58%, 30%)
HSVhsv(51, 74%, 47%)
CMYKcmyk(0%, 10.7%, 73.6%, 52.5%)
CIE-LABlab(45.49, -4.11, 42.25)
CIE-LCHlch(45.49, 42.45, 95.55°)
OKLaboklab(52.87% -0.0154 0.094)
OKLCHoklch(52.87% 0.095 99.3)
XYZxyz(13.5091, 14.8950, 3.5297)
Luminance0.1489 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796C20 #202D79
analogous
#794020 #796C20 #597920
triadic
#796C20 #20796C #6C2079
tetradic
#796C20 #207940 #202D79 #792059
square
#796C20 #207940 #202D79 #792059
split-complementary
#796C20 #205979 #402079
monochromatic
#181606 #494113 #796C20 #A9972D #CEBA45

Accessibility & contrast

On white

5.28
#796C20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#796C20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796C20
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796C20#FFFFFF#000000##FFFFFF
##796C201.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776914
Deuteranopia (green-blind)
#7A6E25
Tritanopia (blue-blind)
#83645D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796c20;
/* rgb */ color: rgb(121, 108, 32);
/* oklch */ color: oklch(52.9% 0.095 99.3);
Tailwind
colors: {
  custom: {
    50: '#a39561',
    500: '#796c20',
    950: '#000000',
  },
}
SCSS
$custom: #796c20;
$custom-light: #a39561;
$custom-dark: #000000;
JSON
{
  "hex": "#796c20",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 32
  },
  "hsl": {
    "h": 51.236,
    "s": 58.17,
    "l": 30
  },
  "oklch": {
    "l": 0.5287,
    "c": 0.0953,
    "h": 99.3
  },
  "luminance": 0.14894
}

Semantic roles & 50–950 ramp

primary
#796C20
secondary
#4957AC
accent
#5DE146
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #796C20

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

Preview Lab → · Contrast checker → · Palette generator →

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