#796E20#796E20

#796E20 is a mid, moderate yellow. Relative luminance 0.153; OKLCH L 53.3% C 0.097 H 101.1°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#796E20
RGBrgb(121, 110, 32)
HSLhsl(53, 58%, 30%)
HSVhsv(53, 74%, 47%)
CMYKcmyk(0%, 9.1%, 73.6%, 52.5%)
CIE-LABlab(46.07, -5.25, 42.82)
CIE-LCHlch(46.07, 43.14, 96.99°)
OKLaboklab(53.33% -0.0187 0.0953)
OKLCHoklch(53.33% 0.097 101.1)
XYZxyz(13.7224, 15.3217, 3.6008)
Luminance0.1532 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796E20 #202B79
analogous
#794120 #796E20 #587920
triadic
#796E20 #20796E #6E2079
tetradic
#796E20 #207941 #202B79 #792058
square
#796E20 #207941 #202B79 #792058
split-complementary
#796E20 #205879 #412079
monochromatic
#181606 #494213 #796E20 #A99A2D #CEBD45

Accessibility & contrast

On white

5.17
#796E20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#796E20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796E20
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796E20#FFFFFF#000000##FFFFFF
##796E201.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796B14
Deuteranopia (green-blind)
#7C6F25
Tritanopia (blue-blind)
#83665E
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #796e20;
/* rgb */ color: rgb(121, 110, 32);
/* oklch */ color: oklch(53.3% 0.097 101.1);
Tailwind
colors: {
  custom: {
    50: '#a39761',
    500: '#796e20',
    950: '#000000',
  },
}
SCSS
$custom: #796e20;
$custom-light: #a39761;
$custom-dark: #000000;
JSON
{
  "hex": "#796e20",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 32
  },
  "hsl": {
    "h": 52.584,
    "s": 58.17,
    "l": 30
  },
  "oklch": {
    "l": 0.53331,
    "c": 0.09709,
    "h": 101.1
  },
  "luminance": 0.15321
}

Semantic roles & 50–950 ramp

primary
#796E20
secondary
#4955AC
accent
#5AE146
background
#FAF9F5
surface
#F4F2EA
border
#CECCC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #796E20

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

Preview Lab → · Contrast checker → · Palette generator →

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