#796B1E#796B1E

#796B1E is a mid, moderate yellow. Relative luminance 0.147; OKLCH L 52.6% C 0.096 H 98.6°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#796B1E
RGBrgb(121, 107, 30)
HSLhsl(51, 60%, 30%)
HSVhsv(51, 75%, 47%)
CMYKcmyk(0%, 11.6%, 75.2%, 52.5%)
CIE-LABlab(45.19, -3.64, 42.79)
CIE-LCHlch(45.19, 42.94, 94.87°)
OKLaboklab(52.62% -0.0144 0.0948)
OKLCHoklch(52.62% 0.096 98.6)
XYZxyz(13.3778, 14.6747, 3.3559)
Luminance0.1467 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796B1E #1E2C79
analogous
#793D1E #796B1E #5A791E
triadic
#796B1E #1E796B #6B1E79
tetradic
#796B1E #1E793D #1E2C79 #791E5A
square
#796B1E #1E793D #1E2C79 #791E5A
split-complementary
#796B1E #1E5A79 #3D1E79
monochromatic
#191606 #484012 #796B1E #AA962A #D0BA41

Accessibility & contrast

On white

5.34
#796B1E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#796B1E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796B1E
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796B1E#FFFFFF#000000##FFFFFF
##796B1E1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766812
Deuteranopia (green-blind)
#7A6D23
Tritanopia (blue-blind)
#83635C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #796b1e;
/* rgb */ color: rgb(121, 107, 30);
/* oklch */ color: oklch(52.6% 0.096 98.6);
Tailwind
colors: {
  custom: {
    50: '#a39560',
    500: '#796b1e',
    950: '#000000',
  },
}
SCSS
$custom: #796b1e;
$custom-light: #a39560;
$custom-dark: #000000;
JSON
{
  "hex": "#796b1e",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 30
  },
  "hsl": {
    "h": 50.769,
    "s": 60.265,
    "l": 29.608
  },
  "oklch": {
    "l": 0.52624,
    "c": 0.09587,
    "h": 98.6
  },
  "luminance": 0.14674
}

Semantic roles & 50–950 ramp

primary
#796B1E
secondary
#4656AD
accent
#5DE344
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #796B1E

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

Preview Lab → · Contrast checker → · Palette generator →

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