#796816#796816

#796816 is a mid, moderate yellow. Relative luminance 0.140; OKLCH L 51.9% C 0.098 H 96.6°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#796816
RGBrgb(121, 104, 22)
HSLhsl(50, 69%, 28%)
HSVhsv(50, 82%, 47%)
CMYKcmyk(0%, 14%, 81.8%, 52.5%)
CIE-LABlab(44.27, -2.28, 45.00)
CIE-LCHlch(44.27, 45.06, 92.91°)
OKLaboklab(51.88% -0.0114 0.0978)
OKLCHoklch(51.88% 0.098 96.6)
XYZxyz(12.9810, 14.0242, 2.7821)
Luminance0.1402 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796816 #162779
analogous
#793616 #796816 #587916
triadic
#796816 #167968 #681679
tetradic
#796816 #167936 #162779 #791658
square
#796816 #167936 #162779 #791658
split-complementary
#796816 #165879 #361679
monochromatic
#1A1605 #453B0D #796816 #AD951F #D9BC30

Accessibility & contrast

On white

5.52
#796816 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#796816 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796816
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796816#FFFFFF#000000##FFFFFF
##7968161.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746603
Deuteranopia (green-blind)
#786B1C
Tritanopia (blue-blind)
#835F59
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #796816;
/* rgb */ color: rgb(121, 104, 22);
/* oklch */ color: oklch(51.9% 0.098 96.6);
Tailwind
colors: {
  custom: {
    50: '#a3925b',
    500: '#796816',
    950: '#000000',
  },
}
SCSS
$custom: #796816;
$custom-light: #a3925b;
$custom-dark: #000000;
JSON
{
  "hex": "#796816",
  "rgb": {
    "r": 121,
    "g": 104,
    "b": 22
  },
  "hsl": {
    "h": 49.697,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.51881,
    "c": 0.09846,
    "h": 96.6
  },
  "luminance": 0.14024
}

Semantic roles & 50–950 ramp

primary
#796816
secondary
#3D50AE
accent
#5AEC3C
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100D04
muted
#7F7D79

Preview Lab

Preview with #796816

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

Preview Lab → · Contrast checker → · Palette generator →

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