#796B21#796B21

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

Color values

HEX#796B21
RGBrgb(121, 107, 33)
HSLhsl(50, 57%, 30%)
HSVhsv(50, 73%, 47%)
CMYKcmyk(0%, 11.6%, 72.7%, 52.5%)
CIE-LABlab(45.21, -3.48, 41.53)
CIE-LCHlch(45.21, 41.68, 94.79°)
OKLaboklab(52.65% -0.0135 0.0927)
OKLCHoklch(52.65% 0.094 98.3)
XYZxyz(13.4180, 14.6908, 3.5674)
Luminance0.1469 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796B21 #212F79
analogous
#793F21 #796B21 #5B7921
triadic
#796B21 #21796B #6B2179
tetradic
#796B21 #21793F #212F79 #79215B
square
#796B21 #21793F #212F79 #79215B
split-complementary
#796B21 #215B79 #3F2179
monochromatic
#191607 #494014 #796B21 #A9962E #CDB847

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##796B21#FFFFFF#000000##FFFFFF
##796B211.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)
#766816
Deuteranopia (green-blind)
#7A6D25
Tritanopia (blue-blind)
#83635C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #796b21;
/* rgb */ color: rgb(121, 107, 33);
/* oklch */ color: oklch(52.6% 0.094 98.3);
Tailwind
colors: {
  custom: {
    50: '#a39561',
    500: '#796b21',
    950: '#000000',
  },
}
SCSS
$custom: #796b21;
$custom-light: #a39561;
$custom-dark: #000000;
JSON
{
  "hex": "#796b21",
  "rgb": {
    "r": 121,
    "g": 107,
    "b": 33
  },
  "hsl": {
    "h": 50.455,
    "s": 57.143,
    "l": 30.196
  },
  "oklch": {
    "l": 0.52649,
    "c": 0.09371,
    "h": 98.3
  },
  "luminance": 0.1469
}

Semantic roles & 50–950 ramp

primary
#796B21
secondary
#4A59AC
accent
#60E047
background
#FAF9F5
surface
#F4F1EA
border
#CECBC6
text
#0F0D05
muted
#7F7E79

Preview Lab

Preview with #796B21

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

Preview Lab → · Contrast checker → · Palette generator →

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