#796C2A#796C2A

#796C2A is a mid, moderate yellow. Relative luminance 0.150; OKLCH L 53.0% C 0.087 H 98.2°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#796C2A
RGBrgb(121, 108, 42)
HSLhsl(50, 48%, 32%)
HSVhsv(50, 65%, 47%)
CMYKcmyk(0%, 10.7%, 65.3%, 52.5%)
CIE-LABlab(45.58, -3.47, 37.76)
CIE-LCHlch(45.58, 37.92, 95.26°)
OKLaboklab(52.97% -0.0124 0.0863)
OKLCHoklch(52.97% 0.087 98.2)
XYZxyz(13.6662, 14.9579, 4.3573)
Luminance0.1496 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796C2A #2A3779
analogous
#79452A #796C2A #5F792A
triadic
#796C2A #2A796C #6C2A79
tetradic
#796C2A #2A7945 #2A3779 #792A5F
square
#796C2A #2A7945 #2A3779 #792A5F
split-complementary
#796C2A #2A5F79 #452A79
monochromatic
#1E1B0A #4C431A #796C2A #A6953A #C5B358

Accessibility & contrast

On white

5.26
#796C2A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#796C2A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796C2A
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796C2A#FFFFFF#000000##FFFFFF
##796C2A1.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766923
Deuteranopia (green-blind)
#7A6E2D
Tritanopia (blue-blind)
#82645E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #796c2a;
/* rgb */ color: rgb(121, 108, 42);
/* oklch */ color: oklch(53.0% 0.087 98.2);
Tailwind
colors: {
  custom: {
    50: '#a29567',
    500: '#796c2a',
    950: '#000000',
  },
}
SCSS
$custom: #796c2a;
$custom-light: #a29567;
$custom-dark: #000000;
JSON
{
  "hex": "#796c2a",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 42
  },
  "hsl": {
    "h": 50.127,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.52966,
    "c": 0.08719,
    "h": 98.2
  },
  "luminance": 0.14957
}

Semantic roles & 50–950 ramp

primary
#796C2A
secondary
#5462AB
accent
#66D850
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796C2A

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

Preview Lab → · Contrast checker → · Palette generator →

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