#796A2A#796A2A

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

Color values

HEX#796A2A
RGBrgb(121, 106, 42)
HSLhsl(49, 48%, 32%)
HSVhsv(49, 65%, 47%)
CMYKcmyk(0%, 12.4%, 65.3%, 52.5%)
CIE-LABlab(45.00, -2.32, 37.13)
CIE-LCHlch(45.00, 37.20, 93.58°)
OKLaboklab(52.51% -0.0091 0.085)
OKLCHoklch(52.51% 0.085 96.1)
XYZxyz(13.4577, 14.5408, 4.2878)
Luminance0.1454 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796A2A #2A3979
analogous
#79432A #796A2A #61792A
triadic
#796A2A #2A796A #6A2A79
tetradic
#796A2A #2A7943 #2A3979 #792A61
square
#796A2A #2A7943 #2A3979 #792A61
split-complementary
#796A2A #2A6179 #432A79
monochromatic
#1E1A0A #4C421A #796A2A #A6923A #C5B058

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796A2A#FFFFFF#000000##FFFFFF
##796A2A1.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)
#746823
Deuteranopia (green-blind)
#786D2D
Tritanopia (blue-blind)
#82625C
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #796a2a;
/* rgb */ color: rgb(121, 106, 42);
/* oklch */ color: oklch(52.5% 0.085 96.1);
Tailwind
colors: {
  custom: {
    50: '#a29466',
    500: '#796a2a',
    950: '#000000',
  },
}
SCSS
$custom: #796a2a;
$custom-light: #a29466;
$custom-dark: #000000;
JSON
{
  "hex": "#796a2a",
  "rgb": {
    "r": 121,
    "g": 106,
    "b": 42
  },
  "hsl": {
    "h": 48.608,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.52509,
    "c": 0.08545,
    "h": 96.1
  },
  "luminance": 0.1454
}

Semantic roles & 50–950 ramp

primary
#796A2A
secondary
#5465AB
accent
#6AD850
background
#FAF9F6
surface
#F4F1EB
border
#CECBC6
text
#0F0D06
muted
#7F7E7A

Preview Lab

Preview with #796A2A

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

Preview Lab → · Contrast checker → · Palette generator →

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