#796F2A#796F2A

#796F2A is a mid, moderate yellow. Relative luminance 0.156; OKLCH L 53.7% C 0.090 H 101.1°. Best body text is #FFFFFF at 5.10:1 contrast (WCAG AA passes).

Color values

HEX#796F2A
RGBrgb(121, 111, 42)
HSLhsl(52, 48%, 32%)
HSVhsv(52, 65%, 47%)
CMYKcmyk(0%, 8.3%, 65.3%, 52.5%)
CIE-LABlab(46.45, -5.19, 38.70)
CIE-LCHlch(46.45, 39.05, 97.63°)
OKLaboklab(53.66% -0.0173 0.0883)
OKLCHoklch(53.66% 0.09 101.1)
XYZxyz(13.9881, 15.6016, 4.4646)
Luminance0.1560 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796F2A #2A3479
analogous
#79482A #796F2A #5C792A
triadic
#796F2A #2A796F #6F2A79
tetradic
#796F2A #2A7948 #2A3479 #792A5C
square
#796F2A #2A7948 #2A3479 #792A5C
split-complementary
#796F2A #2A5C79 #482A79
monochromatic
#1E1C0A #4C451A #796F2A #A6993A #C5B758

Accessibility & contrast

On white

5.10
#796F2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#796F2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796F2A
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796F2A#FFFFFF#000000##FFFFFF
##796F2A1.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796C22
Deuteranopia (green-blind)
#7C702E
Tritanopia (blue-blind)
#826760
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #796f2a;
/* rgb */ color: rgb(121, 111, 42);
/* oklch */ color: oklch(53.7% 0.090 101.1);
Tailwind
colors: {
  custom: {
    50: '#a29867',
    500: '#796f2a',
    950: '#000000',
  },
}
SCSS
$custom: #796f2a;
$custom-light: #a29867;
$custom-dark: #000000;
JSON
{
  "hex": "#796f2a",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 42
  },
  "hsl": {
    "h": 52.405,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.53657,
    "c": 0.09,
    "h": 101.1
  },
  "luminance": 0.15601
}

Semantic roles & 50–950 ramp

primary
#796F2A
secondary
#545FAB
accent
#61D850
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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