#796A2C#796A2C

#796A2C is a mid, moderate yellow. Relative luminance 0.146; OKLCH L 52.5% C 0.084 H 95.8°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#796A2C
RGBrgb(121, 106, 44)
HSLhsl(48, 47%, 32%)
HSVhsv(48, 64%, 47%)
CMYKcmyk(0%, 12.4%, 63.6%, 52.5%)
CIE-LABlab(45.02, -2.17, 36.15)
CIE-LCHlch(45.02, 36.22, 93.44°)
OKLaboklab(52.53% -0.0084 0.0832)
OKLCHoklch(52.53% 0.084 95.8)
XYZxyz(13.4944, 14.5555, 4.4811)
Luminance0.1456 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796A2C #2C3B79
analogous
#79442C #796A2C #61792C
triadic
#796A2C #2C796A #6A2C79
tetradic
#796A2C #2C7944 #2C3B79 #792C61
square
#796A2C #2C7944 #2C3B79 #792C61
split-complementary
#796A2C #2C6179 #442C79
monochromatic
#1F1B0B #4C431C #796A2C #A6913C #C4AF5C

Accessibility & contrast

On white

5.37
#796A2C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#796A2C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796A2C
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796A2C#FFFFFF#000000##FFFFFF
##796A2C1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746825
Deuteranopia (green-blind)
#786D2F
Tritanopia (blue-blind)
#82625C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #796a2c;
/* rgb */ color: rgb(121, 106, 44);
/* oklch */ color: oklch(52.5% 0.084 95.8);
Tailwind
colors: {
  custom: {
    50: '#a29468',
    500: '#796a2c',
    950: '#000000',
  },
}
SCSS
$custom: #796a2c;
$custom-light: #a29468;
$custom-dark: #000000;
JSON
{
  "hex": "#796a2c",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 44
  },
  "hsl": {
    "h": 48.312,
    "s": 46.667,
    "l": 32.353
  },
  "oklch": {
    "l": 0.52531,
    "c": 0.08362,
    "h": 95.8
  },
  "luminance": 0.14555
}

Semantic roles & 50–950 ramp

primary
#796A2C
secondary
#5767AA
accent
#6BD651
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796A2C

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

Preview Lab → · Contrast checker → · Palette generator →

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