#796D1F#796D1F

#796D1F is a mid, moderate yellow. Relative luminance 0.151; OKLCH L 53.1% C 0.097 H 100.3°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#796D1F
RGBrgb(121, 109, 31)
HSLhsl(52, 59%, 30%)
HSVhsv(52, 74%, 47%)
CMYKcmyk(0%, 9.9%, 74.4%, 52.5%)
CIE-LABlab(45.77, -4.73, 42.95)
CIE-LCHlch(45.77, 43.21, 96.29°)
OKLaboklab(53.09% -0.0173 0.0953)
OKLCHoklch(53.09% 0.097 100.3)
XYZxyz(13.6017, 15.1018, 3.4945)
Luminance0.1510 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796D1F #1F2B79
analogous
#79401F #796D1F #58791F
triadic
#796D1F #1F796D #6D1F79
tetradic
#796D1F #1F7940 #1F2B79 #791F58
square
#796D1F #1F7940 #1F2B79 #791F58
split-complementary
#796D1F #1F5879 #401F79
monochromatic
#181606 #484113 #796D1F #AA992B #CFBC43

Accessibility & contrast

On white

5.22
#796D1F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#796D1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796D1F
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796D1F#FFFFFF#000000##FFFFFF
##796D1F1.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A13
Deuteranopia (green-blind)
#7B6E24
Tritanopia (blue-blind)
#83655E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796d1f;
/* rgb */ color: rgb(121, 109, 31);
/* oklch */ color: oklch(53.1% 0.097 100.3);
Tailwind
colors: {
  custom: {
    50: '#a39660',
    500: '#796d1f',
    950: '#000000',
  },
}
SCSS
$custom: #796d1f;
$custom-light: #a39660;
$custom-dark: #000000;
JSON
{
  "hex": "#796d1f",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 31
  },
  "hsl": {
    "h": 52,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.53092,
    "c": 0.09689,
    "h": 100.3
  },
  "luminance": 0.15101
}

Semantic roles & 50–950 ramp

primary
#796D1F
secondary
#4755AC
accent
#5AE245
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #796D1F

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

Preview Lab → · Contrast checker → · Palette generator →

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