#796B2F#796B2F

#796B2F is a mid, moderate yellow. Relative luminance 0.148; OKLCH L 52.8% C 0.082 H 96.3°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#796B2F
RGBrgb(121, 107, 47)
HSLhsl(49, 44%, 33%)
HSVhsv(49, 61%, 47%)
CMYKcmyk(0%, 11.6%, 61.2%, 52.5%)
CIE-LABlab(45.34, -2.52, 34.99)
CIE-LCHlch(45.34, 35.08, 94.11°)
OKLaboklab(52.8% -0.009 0.0811)
OKLCHoklch(52.8% 0.082 96.3)
XYZxyz(13.6565, 14.7862, 4.8235)
Luminance0.1479 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796B2F #2F3D79
analogous
#79462F #796B2F #62792F
triadic
#796B2F #2F796B #6B2F79
tetradic
#796B2F #2F7946 #2F3D79 #792F62
square
#796B2F #2F7946 #2F3D79 #792F62
split-complementary
#796B2F #2F6279 #462F79
monochromatic
#211D0D #4D441E #796B2F #A59240 #C2AF61

Accessibility & contrast

On white

5.31
#796B2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.96
#796B2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796B2F
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796B2F#FFFFFF#000000##FFFFFF
##796B2F1.005.313.965.31
#FFFFFF5.311.0021.001.00
#0000003.9621.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756929
Deuteranopia (green-blind)
#796D32
Tritanopia (blue-blind)
#82635E
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #796b2f;
/* rgb */ color: rgb(121, 107, 47);
/* oklch */ color: oklch(52.8% 0.082 96.3);
Tailwind
colors: {
  custom: {
    50: '#a2956a',
    500: '#796b2f',
    950: '#000000',
  },
}
SCSS
$custom: #796b2f;
$custom-light: #a2956a;
$custom-dark: #000000;
JSON
{
  "hex": "#796b2f",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 47
  },
  "hsl": {
    "h": 48.649,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.52796,
    "c": 0.08164,
    "h": 96.3
  },
  "luminance": 0.14786
}

Semantic roles & 50–950 ramp

primary
#796B2F
secondary
#5B6AA8
accent
#6CD454
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796B2F

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

Preview Lab → · Contrast checker → · Palette generator →

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