#797716#797716

#797716 is a mid, moderate yellow. Relative luminance 0.173; OKLCH L 55.4% C 0.112 H 108.3°. Best body text is #FFFFFF at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#797716
RGBrgb(121, 119, 22)
HSLhsl(59, 69%, 28%)
HSVhsv(59, 82%, 47%)
CMYKcmyk(0%, 1.7%, 81.8%, 52.5%)
CIE-LABlab(48.66, -10.75, 48.93)
CIE-LCHlch(48.66, 50.09, 102.39°)
OKLaboklab(55.37% -0.0351 0.1062)
OKLCHoklch(55.37% 0.112 108.3)
XYZxyz(14.6274, 17.3170, 3.3309)
Luminance0.1732 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797716 #161879
analogous
#794516 #797716 #497916
triadic
#797716 #167977 #771679
tetradic
#797716 #167945 #161879 #791649
square
#797716 #167945 #161879 #791649
split-complementary
#797716 #164979 #451679
monochromatic
#1A1905 #45440D #797716 #ADAA1F #D9D630

Accessibility & contrast

On white

4.70
#797716 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#797716 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797716
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797716#FFFFFF#000000##FFFFFF
##7977161.004.704.464.70
#FFFFFF4.701.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#827200
Deuteranopia (green-blind)
#83751F
Tritanopia (blue-blind)
#826F65
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #797716;
/* rgb */ color: rgb(121, 119, 22);
/* oklch */ color: oklch(55.4% 0.112 108.3);
Tailwind
colors: {
  custom: {
    50: '#a39e5d',
    500: '#797716',
    950: '#000000',
  },
}
SCSS
$custom: #797716;
$custom-light: #a39e5d;
$custom-dark: #000000;
JSON
{
  "hex": "#797716",
  "rgb": {
    "r": 121,
    "g": 119,
    "b": 22
  },
  "hsl": {
    "h": 58.788,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.55371,
    "c": 0.11189,
    "h": 108.3
  },
  "luminance": 0.17317
}

Semantic roles & 50–950 ramp

primary
#797716
secondary
#3D3FAE
accent
#3FEC3C
background
#FAF9F5
surface
#F4F2E9
border
#CECCC5
text
#100E05
muted
#7F7E79

Preview Lab

Preview with #797716

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

Preview Lab → · Contrast checker → · Palette generator →

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