#796F40#796F40

#796F40 is a mid, moderate yellow. Relative luminance 0.158; OKLCH L 54.0% C 0.067 H 97.6°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#796F40
RGBrgb(121, 111, 64)
HSLhsl(49, 31%, 36%)
HSVhsv(49, 47%, 47%)
CMYKcmyk(0%, 8.3%, 47.1%, 52.5%)
CIE-LABlab(46.72, -3.19, 27.49)
CIE-LCHlch(46.72, 27.68, 96.63°)
OKLaboklab(53.96% -0.0089 0.0664)
OKLCHoklch(53.96% 0.067 97.6)
XYZxyz(14.4954, 15.8045, 7.1365)
Luminance0.1580 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796F40 #404A79
analogous
#795340 #796F40 #677940
triadic
#796F40 #40796F #6F4079
tetradic
#796F40 #407953 #404A79 #794067
square
#796F40 #407953 #404A79 #794067
split-complementary
#796F40 #406779 #534079
monochromatic
#292616 #514A2B #796F40 #A19455 #B9AE7A

Accessibility & contrast

On white

5.05
#796F40 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#796F40 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796F40
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796F40#FFFFFF#000000##FFFFFF
##796F401.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776D3C
Deuteranopia (green-blind)
#7A7042
Tritanopia (blue-blind)
#816964
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #796f40;
/* rgb */ color: rgb(121, 111, 64);
/* oklch */ color: oklch(54.0% 0.067 97.6);
Tailwind
colors: {
  custom: {
    50: '#a19876',
    500: '#796f40',
    950: '#000000',
  },
}
SCSS
$custom: #796f40;
$custom-light: #a19876;
$custom-dark: #000000;
JSON
{
  "hex": "#796f40",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 64
  },
  "hsl": {
    "h": 49.474,
    "s": 30.811,
    "l": 36.275
  },
  "oklch": {
    "l": 0.53957,
    "c": 0.06699,
    "h": 97.6
  },
  "luminance": 0.15804
}

Semantic roles & 50–950 ramp

primary
#796F40
secondary
#717AA4
accent
#73C761
background
#FAF9F7
surface
#F3F2ED
border
#CDCCC8
text
#0F0D08
muted
#7F7E7B

Preview Lab

Preview with #796F40

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

Preview Lab → · Contrast checker → · Palette generator →

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