#797316#797316

#797316 is a mid, moderate yellow. Relative luminance 0.164; OKLCH L 54.4% C 0.108 H 105.6°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#797316
RGBrgb(121, 115, 22)
HSLhsl(56, 69%, 28%)
HSVhsv(56, 82%, 47%)
CMYKcmyk(0%, 5%, 81.8%, 52.5%)
CIE-LABlab(47.48, -8.53, 47.88)
CIE-LCHlch(47.48, 48.63, 100.11°)
OKLaboklab(54.43% -0.029 0.104)
OKLCHoklch(54.43% 0.108 105.6)
XYZxyz(14.1613, 16.3849, 3.1756)
Luminance0.1638 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797316 #161C79
analogous
#794216 #797316 #4D7916
triadic
#797316 #167973 #731679
tetradic
#797316 #167942 #161C79 #79164D
square
#797316 #167942 #161C79 #79164D
split-complementary
#797316 #164D79 #421679
monochromatic
#1A1905 #45420D #797316 #ADA41F #D9CF30

Accessibility & contrast

On white

4.91
#797316 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#797316 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797316
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797316#FFFFFF#000000##FFFFFF
##7973161.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F00
Deuteranopia (green-blind)
#80721E
Tritanopia (blue-blind)
#836B62
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #797316;
/* rgb */ color: rgb(121, 115, 22);
/* oklch */ color: oklch(54.4% 0.108 105.6);
Tailwind
colors: {
  custom: {
    50: '#a39b5d',
    500: '#797316',
    950: '#000000',
  },
}
SCSS
$custom: #797316;
$custom-light: #a39b5d;
$custom-dark: #000000;
JSON
{
  "hex": "#797316",
  "rgb": {
    "r": 121,
    "g": 115,
    "b": 22
  },
  "hsl": {
    "h": 56.364,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.54428,
    "c": 0.10794,
    "h": 105.6
  },
  "luminance": 0.16384
}

Semantic roles & 50–950 ramp

primary
#797316
secondary
#3D43AE
accent
#46EC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E04
muted
#7F7E79

Preview Lab

Preview with #797316

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

Preview Lab → · Contrast checker → · Palette generator →

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