#796C1E#796C1E

#796C1E is a mid, moderate yellow. Relative luminance 0.149; OKLCH L 52.9% C 0.097 H 99.5°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#796C1E
RGBrgb(121, 108, 30)
HSLhsl(51, 60%, 30%)
HSVhsv(51, 75%, 47%)
CMYKcmyk(0%, 10.7%, 75.2%, 52.5%)
CIE-LABlab(45.48, -4.22, 43.07)
CIE-LCHlch(45.48, 43.27, 95.59°)
OKLaboklab(52.85% -0.016 0.0954)
OKLCHoklch(52.85% 0.097 99.5)
XYZxyz(13.4827, 14.8845, 3.3909)
Luminance0.1488 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796C1E #1E2B79
analogous
#793F1E #796C1E #58791E
triadic
#796C1E #1E796C #6C1E79
tetradic
#796C1E #1E793F #1E2B79 #791E58
square
#796C1E #1E793F #1E2B79 #791E58
split-complementary
#796C1E #1E5879 #3F1E79
monochromatic
#191606 #484012 #796C1E #AA982A #D0BC41

Accessibility & contrast

On white

5.28
#796C1E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#796C1E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796C1E
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796C1E#FFFFFF#000000##FFFFFF
##796C1E1.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776911
Deuteranopia (green-blind)
#7A6E23
Tritanopia (blue-blind)
#83645D
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796c1e;
/* rgb */ color: rgb(121, 108, 30);
/* oklch */ color: oklch(52.9% 0.097 99.5);
Tailwind
colors: {
  custom: {
    50: '#a39560',
    500: '#796c1e',
    950: '#000000',
  },
}
SCSS
$custom: #796c1e;
$custom-light: #a39560;
$custom-dark: #000000;
JSON
{
  "hex": "#796c1e",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 30
  },
  "hsl": {
    "h": 51.429,
    "s": 60.265,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52854,
    "c": 0.09672,
    "h": 99.5
  },
  "luminance": 0.14884
}

Semantic roles & 50–950 ramp

primary
#796C1E
secondary
#4655AD
accent
#5BE344
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #796C1E

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

Preview Lab → · Contrast checker → · Palette generator →

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