#796D2C#796D2C

#796D2C is a mid, moderate yellow. Relative luminance 0.152; OKLCH L 53.2% C 0.086 H 98.9°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#796D2C
RGBrgb(121, 109, 44)
HSLhsl(51, 47%, 32%)
HSVhsv(51, 64%, 47%)
CMYKcmyk(0%, 9.9%, 63.6%, 52.5%)
CIE-LABlab(45.89, -3.90, 37.11)
CIE-LCHlch(45.89, 37.32, 96.00°)
OKLaboklab(53.22% -0.0133 0.0853)
OKLCHoklch(53.22% 0.086 98.9)
XYZxyz(13.8090, 15.1847, 4.5859)
Luminance0.1518 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796D2C #2C3879
analogous
#79462C #796D2C #5F792C
triadic
#796D2C #2C796D #6D2C79
tetradic
#796D2C #2C7946 #2C3879 #792C5F
square
#796D2C #2C7946 #2C3879 #792C5F
split-complementary
#796D2C #2C5F79 #462C79
monochromatic
#1F1C0B #4C451C #796D2C #A6953C #C4B35C

Accessibility & contrast

On white

5.20
#796D2C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#796D2C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796D2C
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796D2C#FFFFFF#000000##FFFFFF
##796D2C1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#776A25
Deuteranopia (green-blind)
#7A6F2F
Tritanopia (blue-blind)
#82655F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #796d2c;
/* rgb */ color: rgb(121, 109, 44);
/* oklch */ color: oklch(53.2% 0.086 98.9);
Tailwind
colors: {
  custom: {
    50: '#a29668',
    500: '#796d2c',
    950: '#000000',
  },
}
SCSS
$custom: #796d2c;
$custom-light: #a29668;
$custom-dark: #000000;
JSON
{
  "hex": "#796d2c",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 44
  },
  "hsl": {
    "h": 50.649,
    "s": 46.667,
    "l": 32.353
  },
  "oklch": {
    "l": 0.53218,
    "c": 0.08629,
    "h": 98.9
  },
  "luminance": 0.15184
}

Semantic roles & 50–950 ramp

primary
#796D2C
secondary
#5764AA
accent
#66D651
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796D2C

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

Preview Lab → · Contrast checker → · Palette generator →

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