#797420#797420

#797420 is a mid, moderate yellow. Relative luminance 0.167; OKLCH L 54.7% C 0.103 H 105.9°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#797420
RGBrgb(121, 116, 32)
HSLhsl(57, 58%, 30%)
HSVhsv(57, 74%, 47%)
CMYKcmyk(0%, 4.1%, 73.6%, 52.5%)
CIE-LABlab(47.83, -8.63, 44.56)
CIE-LCHlch(47.83, 45.38, 100.96°)
OKLaboklab(54.73% -0.0282 0.0989)
OKLCHoklch(54.73% 0.103 105.9)
XYZxyz(14.3918, 16.6605, 3.8239)
Luminance0.1666 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797420 #202579
analogous
#794720 #797420 #527920
triadic
#797420 #207974 #742079
tetradic
#797420 #207947 #202579 #792052
square
#797420 #207947 #202579 #792052
split-complementary
#797420 #205279 #472079
monochromatic
#181706 #494613 #797420 #A9A22D #CEC645

Accessibility & contrast

On white

4.85
#797420 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#797420 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797420
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797420#FFFFFF#000000##FFFFFF
##7974201.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E7012
Deuteranopia (green-blind)
#807326
Tritanopia (blue-blind)
#826C63
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #797420;
/* rgb */ color: rgb(121, 116, 32);
/* oklch */ color: oklch(54.7% 0.103 105.9);
Tailwind
colors: {
  custom: {
    50: '#a39b62',
    500: '#797420',
    950: '#000000',
  },
}
SCSS
$custom: #797420;
$custom-light: #a39b62;
$custom-dark: #000000;
JSON
{
  "hex": "#797420",
  "rgb": {
    "r": 121,
    "g": 116,
    "b": 32
  },
  "hsl": {
    "h": 56.629,
    "s": 58.17,
    "l": 30
  },
  "oklch": {
    "l": 0.54729,
    "c": 0.10287,
    "h": 105.9
  },
  "luminance": 0.1666
}

Semantic roles & 50–950 ramp

primary
#797420
secondary
#494EAC
accent
#4FE146
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #797420

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

Preview Lab → · Contrast checker → · Palette generator →

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