#796D2F#796D2F

#796D2F is a mid, moderate yellow. Relative luminance 0.152; OKLCH L 53.3% C 0.083 H 98.5°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#796D2F
RGBrgb(121, 109, 47)
HSLhsl(50, 44%, 33%)
HSVhsv(50, 61%, 47%)
CMYKcmyk(0%, 9.9%, 61.2%, 52.5%)
CIE-LABlab(45.92, -3.67, 35.65)
CIE-LCHlch(45.92, 35.83, 95.87°)
OKLaboklab(53.25% -0.0123 0.0825)
OKLCHoklch(53.25% 0.083 98.5)
XYZxyz(13.8674, 15.2081, 4.8938)
Luminance0.1521 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796D2F #2F3B79
analogous
#79482F #796D2F #60792F
triadic
#796D2F #2F796D #6D2F79
tetradic
#796D2F #2F7948 #2F3B79 #792F60
square
#796D2F #2F7948 #2F3B79 #792F60
split-complementary
#796D2F #2F6079 #482F79
monochromatic
#211E0D #4D451E #796D2F #A59540 #C2B261

Accessibility & contrast

On white

5.20
#796D2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#796D2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796D2F
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796D2F#FFFFFF#000000##FFFFFF
##796D2F1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776A29
Deuteranopia (green-blind)
#7A6F32
Tritanopia (blue-blind)
#82665F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #796d2f;
/* rgb */ color: rgb(121, 109, 47);
/* oklch */ color: oklch(53.3% 0.083 98.5);
Tailwind
colors: {
  custom: {
    50: '#a2966a',
    500: '#796d2f',
    950: '#000000',
  },
}
SCSS
$custom: #796d2f;
$custom-light: #a2966a;
$custom-dark: #000000;
JSON
{
  "hex": "#796d2f",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 47
  },
  "hsl": {
    "h": 50.27,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.53253,
    "c": 0.08345,
    "h": 98.5
  },
  "luminance": 0.15207
}

Semantic roles & 50–950 ramp

primary
#796D2F
secondary
#5B68A8
accent
#69D454
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796D2F

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

Preview Lab → · Contrast checker → · Palette generator →

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