#796A2B#796A2B

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

Color values

HEX#796A2B
RGBrgb(121, 106, 43)
HSLhsl(48, 48%, 32%)
HSVhsv(48, 64%, 47%)
CMYKcmyk(0%, 12.4%, 64.5%, 52.5%)
CIE-LABlab(45.01, -2.25, 36.64)
CIE-LCHlch(45.01, 36.71, 93.51°)
OKLaboklab(52.52% -0.0087 0.0841)
OKLCHoklch(52.52% 0.085 95.9)
XYZxyz(13.4758, 14.5481, 4.3833)
Luminance0.1455 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796A2B #2B3A79
analogous
#79432B #796A2B #61792B
triadic
#796A2B #2B796A #6A2B79
tetradic
#796A2B #2B7943 #2B3A79 #792B61
square
#796A2B #2B7943 #2B3A79 #792B61
split-complementary
#796A2B #2B6179 #432B79
monochromatic
#1F1B0B #4C421B #796A2B #A6923B #C4B05A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796A2B#FFFFFF#000000##FFFFFF
##796A2B1.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)
#746824
Deuteranopia (green-blind)
#786D2E
Tritanopia (blue-blind)
#82625C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #796a2b;
/* rgb */ color: rgb(121, 106, 43);
/* oklch */ color: oklch(52.5% 0.085 95.9);
Tailwind
colors: {
  custom: {
    50: '#a29467',
    500: '#796a2b',
    950: '#000000',
  },
}
SCSS
$custom: #796a2b;
$custom-light: #a29467;
$custom-dark: #000000;
JSON
{
  "hex": "#796a2b",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 43
  },
  "hsl": {
    "h": 48.462,
    "s": 47.561,
    "l": 32.157
  },
  "oklch": {
    "l": 0.5252,
    "c": 0.08455,
    "h": 95.9
  },
  "luminance": 0.14547
}

Semantic roles & 50–950 ramp

primary
#796A2B
secondary
#5666AA
accent
#6BD751
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796A2B

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

Preview Lab → · Contrast checker → · Palette generator →

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