#796A2F#796A2F

#796A2F is a mid, moderate yellow. Relative luminance 0.146; OKLCH L 52.6% C 0.081 H 95.2°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#796A2F
RGBrgb(121, 106, 47)
HSLhsl(48, 44%, 33%)
HSVhsv(48, 61%, 47%)
CMYKcmyk(0%, 12.4%, 61.2%, 52.5%)
CIE-LABlab(45.05, -1.94, 34.66)
CIE-LCHlch(45.05, 34.72, 93.20°)
OKLaboklab(52.57% -0.0073 0.0804)
OKLCHoklch(52.57% 0.081 95.2)
XYZxyz(13.5528, 14.5789, 4.7889)
Luminance0.1458 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796A2F #2F3E79
analogous
#79452F #796A2F #63792F
triadic
#796A2F #2F796A #6A2F79
tetradic
#796A2F #2F7945 #2F3E79 #792F63
square
#796A2F #2F7945 #2F3E79 #792F63
split-complementary
#796A2F #2F6379 #452F79
monochromatic
#211D0D #4D431E #796A2F #A59140 #C2AE61

Accessibility & contrast

On white

5.36
#796A2F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#796A2F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796A2F
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796A2F#FFFFFF#000000##FFFFFF
##796A2F1.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746829
Deuteranopia (green-blind)
#786D32
Tritanopia (blue-blind)
#82625D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #796a2f;
/* rgb */ color: rgb(121, 106, 47);
/* oklch */ color: oklch(52.6% 0.081 95.2);
Tailwind
colors: {
  custom: {
    50: '#a2946a',
    500: '#796a2f',
    950: '#000000',
  },
}
SCSS
$custom: #796a2f;
$custom-light: #a2946a;
$custom-dark: #000000;
JSON
{
  "hex": "#796a2f",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 47
  },
  "hsl": {
    "h": 47.838,
    "s": 44.048,
    "l": 32.941
  },
  "oklch": {
    "l": 0.52568,
    "c": 0.08076,
    "h": 95.2
  },
  "luminance": 0.14578
}

Semantic roles & 50–950 ramp

primary
#796A2F
secondary
#5B6BA8
accent
#6ED454
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796A2F

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

Preview Lab → · Contrast checker → · Palette generator →

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