#796D1B#796D1B

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

Color values

HEX#796D1B
RGBrgb(121, 109, 27)
HSLhsl(52, 64%, 29%)
HSVhsv(52, 78%, 47%)
CMYKcmyk(0%, 9.9%, 77.7%, 52.5%)
CIE-LABlab(45.75, -4.93, 44.52)
CIE-LCHlch(45.75, 44.79, 96.32°)
OKLaboklab(53.06% -0.0184 0.0979)
OKLCHoklch(53.06% 0.1 100.6)
XYZxyz(13.5523, 15.0820, 3.2340)
Luminance0.1508 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796D1B #1B2779
analogous
#793E1B #796D1B #56791B
triadic
#796D1B #1B796D #6D1B79
tetradic
#796D1B #1B793E #1B2779 #791B56
square
#796D1B #1B793E #1B2779 #791B56
split-complementary
#796D1B #1B5679 #3E1B79
monochromatic
#191706 #474010 #796D1B #AB9A26 #D3C03B

Accessibility & contrast

On white

5.23
#796D1B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #796D1B
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796D1B#FFFFFF#000000##FFFFFF
##796D1B1.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786A0B
Deuteranopia (green-blind)
#7B6E21
Tritanopia (blue-blind)
#83655D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796d1b;
/* rgb */ color: rgb(121, 109, 27);
/* oklch */ color: oklch(53.1% 0.100 100.6);
Tailwind
colors: {
  custom: {
    50: '#a3965e',
    500: '#796d1b',
    950: '#000000',
  },
}
SCSS
$custom: #796d1b;
$custom-light: #a3965e;
$custom-dark: #000000;
JSON
{
  "hex": "#796d1b",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 27
  },
  "hsl": {
    "h": 52.34,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.53062,
    "c": 0.09956,
    "h": 100.6
  },
  "luminance": 0.15081
}

Semantic roles & 50–950 ramp

primary
#796D1B
secondary
#4350AD
accent
#56E741
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #796D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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