#796C16#796C16

#796C16 is a mid, moderate yellow. Relative luminance 0.148; OKLCH L 52.8% C 0.102 H 100.1°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#796C16
RGBrgb(121, 108, 22)
HSLhsl(52, 69%, 28%)
HSVhsv(52, 82%, 47%)
CMYKcmyk(0%, 10.7%, 81.8%, 52.5%)
CIE-LABlab(45.43, -4.58, 46.05)
CIE-LCHlch(45.43, 46.27, 95.68°)
OKLaboklab(52.8% -0.0179 0.1)
OKLCHoklch(52.8% 0.102 100.1)
XYZxyz(13.3932, 14.8487, 2.9195)
Luminance0.1485 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796C16 #162379
analogous
#793A16 #796C16 #547916
triadic
#796C16 #16796C #6C1679
tetradic
#796C16 #16793A #162379 #791654
square
#796C16 #16793A #162379 #791654
split-complementary
#796C16 #165479 #3A1679
monochromatic
#1A1705 #453E0D #796C16 #AD9A1F #D9C330

Accessibility & contrast

On white

5.29
#796C16 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#796C16 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796C16
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796C16#FFFFFF#000000##FFFFFF
##796C161.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #796c16;
/* rgb */ color: rgb(121, 108, 22);
/* oklch */ color: oklch(52.8% 0.102 100.1);
Tailwind
colors: {
  custom: {
    50: '#a3955c',
    500: '#796c16',
    950: '#000000',
  },
}
SCSS
$custom: #796c16;
$custom-light: #a3955c;
$custom-dark: #000000;
JSON
{
  "hex": "#796c16",
  "rgb": {
    "r": 121,
    "g": 108,
    "b": 22
  },
  "hsl": {
    "h": 52.121,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.52799,
    "c": 0.10162,
    "h": 100.1
  },
  "luminance": 0.14848
}

Semantic roles & 50–950 ramp

primary
#796C16
secondary
#3D4BAE
accent
#53EC3C
background
#FAF9F5
surface
#F4F1E9
border
#CECBC5
text
#100D04
muted
#7F7E79

Preview Lab

Preview with #796C16

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

Preview Lab → · Contrast checker → · Palette generator →

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