#796E2B#796E2B

#796E2B is a mid, moderate yellow. Relative luminance 0.154; OKLCH L 53.4% C 0.088 H 100.0°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#796E2B
RGBrgb(121, 110, 43)
HSLhsl(52, 48%, 32%)
HSVhsv(52, 64%, 47%)
CMYKcmyk(0%, 9.1%, 64.5%, 52.5%)
CIE-LABlab(46.17, -4.54, 37.91)
CIE-LCHlch(46.17, 38.18, 96.83°)
OKLaboklab(53.44% -0.0153 0.0868)
OKLCHoklch(53.44% 0.088 100)
XYZxyz(13.8977, 15.3918, 4.5239)
Luminance0.1539 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796E2B #2B3679
analogous
#79472B #796E2B #5D792B
triadic
#796E2B #2B796E #6E2B79
tetradic
#796E2B #2B7947 #2B3679 #792B5D
square
#796E2B #2B7947 #2B3679 #792B5D
split-complementary
#796E2B #2B5D79 #472B79
monochromatic
#1F1C0B #4C451B #796E2B #A6973B #C4B55A

Accessibility & contrast

On white

5.15
#796E2B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#796E2B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796E2B
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796E2B#FFFFFF#000000##FFFFFF
##796E2B1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786B23
Deuteranopia (green-blind)
#7B6F2E
Tritanopia (blue-blind)
#826660
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #796e2b;
/* rgb */ color: rgb(121, 110, 43);
/* oklch */ color: oklch(53.4% 0.088 100.0);
Tailwind
colors: {
  custom: {
    50: '#a29767',
    500: '#796e2b',
    950: '#000000',
  },
}
SCSS
$custom: #796e2b;
$custom-light: #a29767;
$custom-dark: #000000;
JSON
{
  "hex": "#796e2b",
  "rgb": {
    "r": 121,
    "g": 110,
    "b": 43
  },
  "hsl": {
    "h": 51.538,
    "s": 47.561,
    "l": 32.157
  },
  "oklch": {
    "l": 0.53437,
    "c": 0.08814,
    "h": 100
  },
  "luminance": 0.15391
}

Semantic roles & 50–950 ramp

primary
#796E2B
secondary
#5662AA
accent
#64D751
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796E2B

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

Preview Lab → · Contrast checker → · Palette generator →

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