#796F20#796F20

#796F20 is a mid, moderate yellow. Relative luminance 0.155; OKLCH L 53.6% C 0.098 H 101.9°. Best body text is #FFFFFF at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#796F20
RGBrgb(121, 111, 32)
HSLhsl(53, 58%, 30%)
HSVhsv(53, 74%, 47%)
CMYKcmyk(0%, 8.3%, 73.6%, 52.5%)
CIE-LABlab(46.36, -5.82, 43.11)
CIE-LCHlch(46.36, 43.50, 97.68°)
OKLaboklab(53.56% -0.0203 0.0959)
OKLCHoklch(53.56% 0.098 101.9)
XYZxyz(13.8309, 15.5387, 3.6370)
Luminance0.1554 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796F20 #202A79
analogous
#794220 #796F20 #577920
triadic
#796F20 #20796F #6F2079
tetradic
#796F20 #207942 #202A79 #792057
square
#796F20 #207942 #202A79 #792057
split-complementary
#796F20 #205779 #422079
monochromatic
#181606 #494313 #796F20 #A99B2D #CEBF45

Accessibility & contrast

On white

5.11
#796F20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.11
#796F20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796F20
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796F20#FFFFFF#000000##FFFFFF
##796F201.005.114.115.11
#FFFFFF5.111.0021.001.00
#0000004.1121.001.0021.00
##FFFFFF5.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6B14
Deuteranopia (green-blind)
#7D7025
Tritanopia (blue-blind)
#83675F
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #796f20;
/* rgb */ color: rgb(121, 111, 32);
/* oklch */ color: oklch(53.6% 0.098 101.9);
Tailwind
colors: {
  custom: {
    50: '#a39861',
    500: '#796f20',
    950: '#000000',
  },
}
SCSS
$custom: #796f20;
$custom-light: #a39861;
$custom-dark: #000000;
JSON
{
  "hex": "#796f20",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 32
  },
  "hsl": {
    "h": 53.258,
    "s": 58.17,
    "l": 30
  },
  "oklch": {
    "l": 0.53563,
    "c": 0.098,
    "h": 101.9
  },
  "luminance": 0.15538
}

Semantic roles & 50–950 ramp

primary
#796F20
secondary
#4954AC
accent
#58E146
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #796F20

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

Preview Lab → · Contrast checker → · Palette generator →

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