#796C2F#796C2F

#796C2F is a mid, moderate yellow. Relative luminance 0.150; OKLCH L 53.0% C 0.083 H 97.4°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#796C2F
RGBrgb(121, 108, 47)
HSLhsl(49, 44%, 33%)
HSVhsv(49, 61%, 47%)
CMYKcmyk(0%, 10.7%, 61.2%, 52.5%)
CIE-LABlab(45.63, -3.09, 35.32)
CIE-LCHlch(45.63, 35.45, 95.00°)
OKLaboklab(53.02% -0.0106 0.0818)
OKLCHoklch(53.02% 0.083 97.4)
XYZxyz(13.7614, 14.9959, 4.8584)
Luminance0.1499 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796C2F #2F3C79
analogous
#79472F #796C2F #61792F
triadic
#796C2F #2F796C #6C2F79
tetradic
#796C2F #2F7947 #2F3C79 #792F61
square
#796C2F #2F7947 #2F3C79 #792F61
split-complementary
#796C2F #2F6179 #472F79
monochromatic
#211D0D #4D451E #796C2F #A59340 #C2B161

Accessibility & contrast

On white

5.25
#796C2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#796C2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796C2F
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796C2F#FFFFFF#000000##FFFFFF
##796C2F1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766929
Deuteranopia (green-blind)
#796E32
Tritanopia (blue-blind)
#82655F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796c2f;
/* rgb */ color: rgb(121, 108, 47);
/* oklch */ color: oklch(53.0% 0.083 97.4);
Tailwind
colors: {
  custom: {
    50: '#a2956a',
    500: '#796c2f',
    950: '#000000',
  },
}
SCSS
$custom: #796c2f;
$custom-light: #a2956a;
$custom-dark: #000000;
JSON
{
  "hex": "#796c2f",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 47
  },
  "hsl": {
    "h": 49.459,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.53024,
    "c": 0.08253,
    "h": 97.4
  },
  "luminance": 0.14995
}

Semantic roles & 50–950 ramp

primary
#796C2F
secondary
#5B69A8
accent
#6AD454
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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