#796D2B#796D2B

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

Color values

HEX#796D2B
RGBrgb(121, 109, 43)
HSLhsl(51, 48%, 32%)
HSVhsv(51, 64%, 47%)
CMYKcmyk(0%, 9.9%, 64.5%, 52.5%)
CIE-LABlab(45.88, -3.97, 37.60)
CIE-LCHlch(45.88, 37.80, 96.03°)
OKLaboklab(53.21% -0.0137 0.0861)
OKLCHoklch(53.21% 0.087 99)
XYZxyz(13.7904, 15.1772, 4.4881)
Luminance0.1518 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796D2B #2B3779
analogous
#79462B #796D2B #5E792B
triadic
#796D2B #2B796D #6D2B79
tetradic
#796D2B #2B7946 #2B3779 #792B5E
square
#796D2B #2B7946 #2B3779 #792B5E
split-complementary
#796D2B #2B5E79 #462B79
monochromatic
#1F1C0B #4C441B #796D2B #A6963B #C4B45A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796D2B#FFFFFF#000000##FFFFFF
##796D2B1.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)
#776A24
Deuteranopia (green-blind)
#7B6F2E
Tritanopia (blue-blind)
#82655F
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #796d2b;
/* rgb */ color: rgb(121, 109, 43);
/* oklch */ color: oklch(53.2% 0.087 99.0);
Tailwind
colors: {
  custom: {
    50: '#a29667',
    500: '#796d2b',
    950: '#000000',
  },
}
SCSS
$custom: #796d2b;
$custom-light: #a29667;
$custom-dark: #000000;
JSON
{
  "hex": "#796d2b",
  "rgb": {
    "r": 121,
    "g": 109,
    "b": 43
  },
  "hsl": {
    "h": 50.769,
    "s": 47.561,
    "l": 32.157
  },
  "oklch": {
    "l": 0.53207,
    "c": 0.0872,
    "h": 99
  },
  "luminance": 0.15177
}

Semantic roles & 50–950 ramp

primary
#796D2B
secondary
#5663AA
accent
#65D751
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796D2B

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

Preview Lab → · Contrast checker → · Palette generator →

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