#796C1A#796C1A

#796C1A is a mid, moderate yellow. Relative luminance 0.149; OKLCH L 52.8% C 0.099 H 99.8°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#796C1A
RGBrgb(121, 108, 26)
HSLhsl(52, 65%, 29%)
HSVhsv(52, 79%, 47%)
CMYKcmyk(0%, 10.7%, 78.5%, 52.5%)
CIE-LABlab(45.45, -4.41, 44.62)
CIE-LCHlch(45.45, 44.84, 95.65°)
OKLaboklab(52.82% -0.017 0.0979)
OKLCHoklch(52.82% 0.099 99.8)
XYZxyz(13.4348, 14.8653, 3.1387)
Luminance0.1487 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796C1A #1A2779
analogous
#793D1A #796C1A #57791A
triadic
#796C1A #1A796C #6C1A79
tetradic
#796C1A #1A793D #1A2779 #791A57
square
#796C1A #1A793D #1A2779 #791A57
split-complementary
#796C1A #1A5779 #3D1A79
monochromatic
#191605 #473F0F #796C1A #AB9925 #D4BF39

Accessibility & contrast

On white

5.29
#796C1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#796C1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796C1A
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796C1A#FFFFFF#000000##FFFFFF
##796C1A1.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#77690A
Deuteranopia (green-blind)
#7B6E20
Tritanopia (blue-blind)
#83645C
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796c1a;
/* rgb */ color: rgb(121, 108, 26);
/* oklch */ color: oklch(52.8% 0.099 99.8);
Tailwind
colors: {
  custom: {
    50: '#a3955e',
    500: '#796c1a',
    950: '#000000',
  },
}
SCSS
$custom: #796c1a;
$custom-light: #a3955e;
$custom-dark: #000000;
JSON
{
  "hex": "#796c1a",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 26
  },
  "hsl": {
    "h": 51.789,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.52824,
    "c": 0.09932,
    "h": 99.8
  },
  "luminance": 0.14865
}

Semantic roles & 50–950 ramp

primary
#796C1A
secondary
#4150AD
accent
#57E840
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D05
muted
#7F7E79

Preview Lab

Preview with #796C1A

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

Preview Lab → · Contrast checker → · Palette generator →

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