#796416#796416

#796416 is a mid, moderate yellow. Relative luminance 0.132; OKLCH L 51.0% C 0.096 H 92.9°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#796416
RGBrgb(121, 100, 22)
HSLhsl(47, 69%, 28%)
HSVhsv(47, 82%, 47%)
CMYKcmyk(0%, 17.4%, 81.8%, 52.5%)
CIE-LABlab(43.12, 0.04, 43.96)
CIE-LCHlch(43.12, 43.96, 89.95°)
OKLaboklab(50.97% -0.0048 0.0956)
OKLCHoklch(50.97% 0.096 92.9)
XYZxyz(12.5879, 13.2380, 2.6511)
Luminance0.1324 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796416 #162B79
analogous
#793216 #796416 #5C7916
triadic
#796416 #167964 #641679
tetradic
#796416 #167932 #162B79 #79165C
square
#796416 #167932 #162B79 #79165C
split-complementary
#796416 #165C79 #321679
monochromatic
#1A1505 #45390D #796416 #AD8F1F #D9B530

Accessibility & contrast

On white

5.76
#796416 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#796416 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796416
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796416#FFFFFF#000000##FFFFFF
##7964161.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#706205
Deuteranopia (green-blind)
#75681B
Tritanopia (blue-blind)
#835B55
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #796416;
/* rgb */ color: rgb(121, 100, 22);
/* oklch */ color: oklch(51.0% 0.096 92.9);
Tailwind
colors: {
  custom: {
    50: '#a38f5b',
    500: '#796416',
    950: '#000000',
  },
}
SCSS
$custom: #796416;
$custom-light: #a38f5b;
$custom-dark: #000000;
JSON
{
  "hex": "#796416",
  "rgb": {
    "r": 121,
    "g": 100,
    "b": 22
  },
  "hsl": {
    "h": 47.273,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.50973,
    "c": 0.09569,
    "h": 92.9
  },
  "luminance": 0.13237
}

Semantic roles & 50–950 ramp

primary
#796416
secondary
#3D55AE
accent
#61EC3C
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #796416

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

Preview Lab → · Contrast checker → · Palette generator →

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