#796716#796716

#796716 is a mid, moderate yellow. Relative luminance 0.138; OKLCH L 51.7% C 0.098 H 95.7°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#796716
RGBrgb(121, 103, 22)
HSLhsl(49, 69%, 28%)
HSVhsv(49, 82%, 47%)
CMYKcmyk(0%, 14.9%, 81.8%, 52.5%)
CIE-LABlab(43.98, -1.71, 44.74)
CIE-LCHlch(43.98, 44.77, 92.18°)
OKLaboklab(51.65% -0.0097 0.0972)
OKLCHoklch(51.65% 0.098 95.7)
XYZxyz(12.8809, 13.8241, 2.7488)
Luminance0.1382 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#796716 #162879
analogous
#793516 #796716 #597916
triadic
#796716 #167967 #671679
tetradic
#796716 #167935 #162879 #791659
square
#796716 #167935 #162879 #791659
split-complementary
#796716 #165979 #351679
monochromatic
#1A1605 #453B0D #796716 #AD931F #D9BB30

Accessibility & contrast

On white

5.58
#796716 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#796716 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #796716
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##796716#FFFFFF#000000##FFFFFF
##7967161.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736504
Deuteranopia (green-blind)
#776A1C
Tritanopia (blue-blind)
#835E58
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #796716;
/* rgb */ color: rgb(121, 103, 22);
/* oklch */ color: oklch(51.7% 0.098 95.7);
Tailwind
colors: {
  custom: {
    50: '#a3925b',
    500: '#796716',
    950: '#000000',
  },
}
SCSS
$custom: #796716;
$custom-light: #a3925b;
$custom-dark: #000000;
JSON
{
  "hex": "#796716",
  "rgb": {
    "r": 121,
    "g": 103,
    "b": 22
  },
  "hsl": {
    "h": 49.091,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.51653,
    "c": 0.09773,
    "h": 95.7
  },
  "luminance": 0.13823
}

Semantic roles & 50–950 ramp

primary
#796716
secondary
#3D51AE
accent
#5CEC3C
background
#FAF8F5
surface
#F4F0E9
border
#CECBC5
text
#100C04
muted
#7F7D79

Preview Lab

Preview with #796716

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

Preview Lab → · Contrast checker → · Palette generator →

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