#796F2F#796F2F

#796F2F is a mid, moderate yellow. Relative luminance 0.156; OKLCH L 53.7% C 0.085 H 100.5°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#796F2F
RGBrgb(121, 111, 47)
HSLhsl(52, 44%, 33%)
HSVhsv(52, 61%, 47%)
CMYKcmyk(0%, 8.3%, 61.2%, 52.5%)
CIE-LABlab(46.50, -4.81, 36.30)
CIE-LCHlch(46.50, 36.62, 97.54°)
OKLaboklab(53.71% -0.0156 0.0839)
OKLCHoklch(53.71% 0.085 100.5)
XYZxyz(14.0832, 15.6396, 4.9657)
Luminance0.1564 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796F2F #2F3979
analogous
#794A2F #796F2F #5E792F
triadic
#796F2F #2F796F #6F2F79
tetradic
#796F2F #2F794A #2F3979 #792F5E
square
#796F2F #2F794A #2F3979 #792F5E
split-complementary
#796F2F #2F5E79 #4A2F79
monochromatic
#211E0D #4D471E #796F2F #A59740 #C2B461

Accessibility & contrast

On white

5.09
#796F2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#796F2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796F2F
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796F2F#FFFFFF#000000##FFFFFF
##796F2F1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796C28
Deuteranopia (green-blind)
#7C7032
Tritanopia (blue-blind)
#826861
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #796f2f;
/* rgb */ color: rgb(121, 111, 47);
/* oklch */ color: oklch(53.7% 0.085 100.5);
Tailwind
colors: {
  custom: {
    50: '#a2986a',
    500: '#796f2f',
    950: '#000000',
  },
}
SCSS
$custom: #796f2f;
$custom-light: #a2986a;
$custom-dark: #000000;
JSON
{
  "hex": "#796f2f",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 47
  },
  "hsl": {
    "h": 51.892,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.53713,
    "c": 0.08537,
    "h": 100.5
  },
  "luminance": 0.15639
}

Semantic roles & 50–950 ramp

primary
#796F2F
secondary
#5B66A8
accent
#65D454
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796F2F

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

Preview Lab → · Contrast checker → · Palette generator →

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