#796D2A#796D2A

#796D2A is a mid, moderate yellow. Relative luminance 0.152; OKLCH L 53.2% C 0.088 H 99.2°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#796D2A
RGBrgb(121, 109, 42)
HSLhsl(51, 48%, 32%)
HSVhsv(51, 65%, 47%)
CMYKcmyk(0%, 9.9%, 65.3%, 52.5%)
CIE-LABlab(45.87, -4.05, 38.07)
CIE-LCHlch(45.87, 38.29, 96.07°)
OKLaboklab(53.2% -0.014 0.087)
OKLCHoklch(53.2% 0.088 99.2)
XYZxyz(13.7723, 15.1700, 4.3927)
Luminance0.1517 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796D2A #2A3679
analogous
#79462A #796D2A #5E792A
triadic
#796D2A #2A796D #6D2A79
tetradic
#796D2A #2A7946 #2A3679 #792A5E
square
#796D2A #2A7946 #2A3679 #792A5E
split-complementary
#796D2A #2A5E79 #462A79
monochromatic
#1E1B0A #4C441A #796D2A #A6963A #C5B558

Accessibility & contrast

On white

5.21
#796D2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#796D2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796D2A
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796D2A#FFFFFF#000000##FFFFFF
##796D2A1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776A22
Deuteranopia (green-blind)
#7B6F2D
Tritanopia (blue-blind)
#82655F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #796d2a;
/* rgb */ color: rgb(121, 109, 42);
/* oklch */ color: oklch(53.2% 0.088 99.2);
Tailwind
colors: {
  custom: {
    50: '#a29667',
    500: '#796d2a',
    950: '#000000',
  },
}
SCSS
$custom: #796d2a;
$custom-light: #a29667;
$custom-dark: #000000;
JSON
{
  "hex": "#796d2a",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 42
  },
  "hsl": {
    "h": 50.886,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.53196,
    "c": 0.0881,
    "h": 99.2
  },
  "luminance": 0.15169
}

Semantic roles & 50–950 ramp

primary
#796D2A
secondary
#5461AB
accent
#64D850
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796D2A

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

Preview Lab → · Contrast checker → · Palette generator →

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