#796216#796216

#796216 is a mid, moderate yellow. Relative luminance 0.129; OKLCH L 50.5% C 0.094 H 90.9°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#796216
RGBrgb(121, 98, 22)
HSLhsl(46, 69%, 28%)
HSVhsv(46, 82%, 47%)
CMYKcmyk(0%, 19%, 81.8%, 52.5%)
CIE-LABlab(42.55, 1.21, 43.45)
CIE-LCHlch(42.55, 43.46, 88.41°)
OKLaboklab(50.52% -0.0015 0.0945)
OKLCHoklch(50.52% 0.094 90.9)
XYZxyz(12.3984, 12.8590, 2.5879)
Luminance0.1286 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796216 #162D79
analogous
#793116 #796216 #5E7916
triadic
#796216 #167962 #621679
tetradic
#796216 #167931 #162D79 #79165E
square
#796216 #167931 #162D79 #79165E
split-complementary
#796216 #165E79 #311679
monochromatic
#1A1505 #45380D #796216 #AD8C1F #D9B230

Accessibility & contrast

On white

5.88
#796216 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#796216 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796216
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796216#FFFFFF#000000##FFFFFF
##7962161.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#6E6106
Deuteranopia (green-blind)
#74671B
Tritanopia (blue-blind)
#845954
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #796216;
/* rgb */ color: rgb(121, 98, 22);
/* oklch */ color: oklch(50.5% 0.094 90.9);
Tailwind
colors: {
  custom: {
    50: '#a38e5a',
    500: '#796216',
    950: '#000000',
  },
}
SCSS
$custom: #796216;
$custom-light: #a38e5a;
$custom-dark: #000000;
JSON
{
  "hex": "#796216",
  "rgb": {
    "r": 121,
    "g": 98,
    "b": 22
  },
  "hsl": {
    "h": 46.061,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.50523,
    "c": 0.09447,
    "h": 90.9
  },
  "luminance": 0.12858
}

Semantic roles & 50–950 ramp

primary
#796216
secondary
#3D57AE
accent
#65EC3C
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #796216

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

Preview Lab → · Contrast checker → · Palette generator →

#796216 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva