#796D1A#796D1A

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

Color values

HEX#796D1A
RGBrgb(121, 109, 26)
HSLhsl(52, 65%, 29%)
HSVhsv(52, 79%, 47%)
CMYKcmyk(0%, 9.9%, 78.5%, 52.5%)
CIE-LABlab(45.74, -4.98, 44.90)
CIE-LCHlch(45.74, 45.17, 96.33°)
OKLaboklab(53.06% -0.0186 0.0984)
OKLCHoklch(53.06% 0.1 100.7)
XYZxyz(13.5409, 15.0774, 3.1741)
Luminance0.1508 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796D1A #1A2679
analogous
#793E1A #796D1A #56791A
triadic
#796D1A #1A796D #6D1A79
tetradic
#796D1A #1A793E #1A2679 #791A56
square
#796D1A #1A793E #1A2679 #791A56
split-complementary
#796D1A #1A5679 #3E1A79
monochromatic
#191705 #47400F #796D1A #AB9A25 #D4C139

Accessibility & contrast

On white

5.23
#796D1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #796D1A
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796D1A#FFFFFF#000000##FFFFFF
##796D1A1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A09
Deuteranopia (green-blind)
#7B6E20
Tritanopia (blue-blind)
#83655D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796d1a;
/* rgb */ color: rgb(121, 109, 26);
/* oklch */ color: oklch(53.1% 0.100 100.7);
Tailwind
colors: {
  custom: {
    50: '#a3965e',
    500: '#796d1a',
    950: '#000000',
  },
}
SCSS
$custom: #796d1a;
$custom-light: #a3965e;
$custom-dark: #000000;
JSON
{
  "hex": "#796d1a",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 26
  },
  "hsl": {
    "h": 52.421,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.53055,
    "c": 0.10018,
    "h": 100.7
  },
  "luminance": 0.15077
}

Semantic roles & 50–950 ramp

primary
#796D1A
secondary
#414FAD
accent
#55E840
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #796D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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