#796B1F#796B1F

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

Color values

HEX#796B1F
RGBrgb(121, 107, 31)
HSLhsl(51, 59%, 30%)
HSVhsv(51, 74%, 47%)
CMYKcmyk(0%, 11.6%, 74.4%, 52.5%)
CIE-LABlab(45.19, -3.59, 42.38)
CIE-LCHlch(45.19, 42.53, 94.84°)
OKLaboklab(52.63% -0.0141 0.0941)
OKLCHoklch(52.63% 0.095 98.5)
XYZxyz(13.3908, 14.6799, 3.4242)
Luminance0.1468 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796B1F #1F2D79
analogous
#793E1F #796B1F #5A791F
triadic
#796B1F #1F796B #6B1F79
tetradic
#796B1F #1F793E #1F2D79 #791F5A
square
#796B1F #1F793E #1F2D79 #791F5A
split-complementary
#796B1F #1F5A79 #3E1F79
monochromatic
#181606 #484013 #796B1F #AA962B #CFB943

Accessibility & contrast

On white

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

On black

3.94
#796B1F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##796B1F#FFFFFF#000000##FFFFFF
##796B1F1.005.343.945.34
#FFFFFF5.341.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #796b1f;
/* rgb */ color: rgb(121, 107, 31);
/* oklch */ color: oklch(52.6% 0.095 98.5);
Tailwind
colors: {
  custom: {
    50: '#a39560',
    500: '#796b1f',
    950: '#000000',
  },
}
SCSS
$custom: #796b1f;
$custom-light: #a39560;
$custom-dark: #000000;
JSON
{
  "hex": "#796b1f",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 31
  },
  "hsl": {
    "h": 50.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52632,
    "c": 0.09517,
    "h": 98.5
  },
  "luminance": 0.14679
}

Semantic roles & 50–950 ramp

primary
#796B1F
secondary
#4757AC
accent
#5EE245
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #796B1F

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

Preview Lab → · Contrast checker → · Palette generator →

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