#796F2B#796F2B

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

Color values

HEX#796F2B
RGBrgb(121, 111, 43)
HSLhsl(52, 48%, 32%)
HSVhsv(52, 64%, 47%)
CMYKcmyk(0%, 8.3%, 64.5%, 52.5%)
CIE-LABlab(46.46, -5.11, 38.23)
CIE-LCHlch(46.46, 38.57, 97.62°)
OKLaboklab(53.67% -0.017 0.0875)
OKLCHoklch(53.67% 0.089 101)
XYZxyz(14.0062, 15.6088, 4.5601)
Luminance0.1561 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796F2B #2B3579
analogous
#79482B #796F2B #5C792B
triadic
#796F2B #2B796F #6F2B79
tetradic
#796F2B #2B7948 #2B3579 #792B5C
square
#796F2B #2B7948 #2B3579 #792B5C
split-complementary
#796F2B #2B5C79 #482B79
monochromatic
#1F1C0B #4C461B #796F2B #A6983B #C4B75A

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796F2B#FFFFFF#000000##FFFFFF
##796F2B1.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)
#796C23
Deuteranopia (green-blind)
#7C702F
Tritanopia (blue-blind)
#826760
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #796f2b;
/* rgb */ color: rgb(121, 111, 43);
/* oklch */ color: oklch(53.7% 0.089 101.0);
Tailwind
colors: {
  custom: {
    50: '#a29867',
    500: '#796f2b',
    950: '#000000',
  },
}
SCSS
$custom: #796f2b;
$custom-light: #a29867;
$custom-dark: #000000;
JSON
{
  "hex": "#796f2b",
  "rgb": {
    "r": 121,
    "g": 111,
    "b": 43
  },
  "hsl": {
    "h": 52.308,
    "s": 47.561,
    "l": 32.157
  },
  "oklch": {
    "l": 0.53667,
    "c": 0.0891,
    "h": 101
  },
  "luminance": 0.15608
}

Semantic roles & 50–950 ramp

primary
#796F2B
secondary
#5660AA
accent
#62D751
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796F2B

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

Preview Lab → · Contrast checker → · Palette generator →

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