#796B20#796B20

#796B20 is a mid, moderate yellow. Relative luminance 0.147; OKLCH L 52.6% C 0.094 H 98.4°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#796B20
RGBrgb(121, 107, 32)
HSLhsl(51, 58%, 30%)
HSVhsv(51, 74%, 47%)
CMYKcmyk(0%, 11.6%, 73.6%, 52.5%)
CIE-LABlab(45.20, -3.54, 41.96)
CIE-LCHlch(45.20, 42.11, 94.82°)
OKLaboklab(52.64% -0.0138 0.0934)
OKLCHoklch(52.64% 0.094 98.4)
XYZxyz(13.4042, 14.6853, 3.4947)
Luminance0.1469 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796B20 #202E79
analogous
#793F20 #796B20 #5A7920
triadic
#796B20 #20796B #6B2079
tetradic
#796B20 #20793F #202E79 #79205A
square
#796B20 #20793F #202E79 #79205A
split-complementary
#796B20 #205A79 #3F2079
monochromatic
#181506 #494013 #796B20 #A9962D #CEB845

Accessibility & contrast

On white

5.33
#796B20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#796B20 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796B20
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796B20#FFFFFF#000000##FFFFFF
##796B201.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766815
Deuteranopia (green-blind)
#7A6D24
Tritanopia (blue-blind)
#83635C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #796b20;
/* rgb */ color: rgb(121, 107, 32);
/* oklch */ color: oklch(52.6% 0.094 98.4);
Tailwind
colors: {
  custom: {
    50: '#a39561',
    500: '#796b20',
    950: '#000000',
  },
}
SCSS
$custom: #796b20;
$custom-light: #a39561;
$custom-dark: #000000;
JSON
{
  "hex": "#796b20",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 32
  },
  "hsl": {
    "h": 50.562,
    "s": 58.17,
    "l": 30
  },
  "oklch": {
    "l": 0.5264,
    "c": 0.09445,
    "h": 98.4
  },
  "luminance": 0.14685
}

Semantic roles & 50–950 ramp

primary
#796B20
secondary
#4958AC
accent
#5FE146
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #796B20

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

Preview Lab → · Contrast checker → · Palette generator →

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