#796B2A#796B2A

#796B2A is a mid, moderate yellow. Relative luminance 0.147; OKLCH L 52.7% C 0.086 H 97.1°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#796B2A
RGBrgb(121, 107, 42)
HSLhsl(49, 48%, 32%)
HSVhsv(49, 65%, 47%)
CMYKcmyk(0%, 11.6%, 65.3%, 52.5%)
CIE-LABlab(45.29, -2.90, 37.44)
CIE-LCHlch(45.29, 37.55, 94.43°)
OKLaboklab(52.74% -0.0107 0.0856)
OKLCHoklch(52.74% 0.086 97.1)
XYZxyz(13.5614, 14.7481, 4.3224)
Luminance0.1475 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796B2A #2A3879
analogous
#79442A #796B2A #60792A
triadic
#796B2A #2A796B #6B2A79
tetradic
#796B2A #2A7944 #2A3879 #792A60
square
#796B2A #2A7944 #2A3879 #792A60
split-complementary
#796B2A #2A6079 #442A79
monochromatic
#1E1B0A #4C431A #796B2A #A6933A #C5B258

Accessibility & contrast

On white

5.32
#796B2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#796B2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796B2A
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796B2A#FFFFFF#000000##FFFFFF
##796B2A1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756823
Deuteranopia (green-blind)
#796D2D
Tritanopia (blue-blind)
#82635D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #796b2a;
/* rgb */ color: rgb(121, 107, 42);
/* oklch */ color: oklch(52.7% 0.086 97.1);
Tailwind
colors: {
  custom: {
    50: '#a29567',
    500: '#796b2a',
    950: '#000000',
  },
}
SCSS
$custom: #796b2a;
$custom-light: #a29567;
$custom-dark: #000000;
JSON
{
  "hex": "#796b2a",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 42
  },
  "hsl": {
    "h": 49.367,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.52737,
    "c": 0.08631,
    "h": 97.1
  },
  "luminance": 0.14748
}

Semantic roles & 50–950 ramp

primary
#796B2A
secondary
#5463AB
accent
#68D850
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796B2A

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

Preview Lab → · Contrast checker → · Palette generator →

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