#797620#797620

#797620 is a mid, moderate yellow. Relative luminance 0.171; OKLCH L 55.2% C 0.105 H 107.4°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#797620
RGBrgb(121, 118, 32)
HSLhsl(58, 58%, 30%)
HSVhsv(58, 74%, 47%)
CMYKcmyk(0%, 2.5%, 73.6%, 52.5%)
CIE-LABlab(48.42, -9.74, 45.13)
CIE-LCHlch(48.42, 46.17, 102.18°)
OKLaboklab(55.2% -0.0314 0.1001)
OKLCHoklch(55.2% 0.105 107.4)
XYZxyz(14.6249, 17.1266, 3.9016)
Luminance0.1713 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797620 #202379
analogous
#794A20 #797620 #4F7920
triadic
#797620 #207976 #762079
tetradic
#797620 #20794A #202379 #79204F
square
#797620 #20794A #202379 #79204F
split-complementary
#797620 #204F79 #4A2079
monochromatic
#181806 #494713 #797620 #A9A52D #CEC945

Accessibility & contrast

On white

4.75
#797620 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#797620 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #797620
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797620#FFFFFF#000000##FFFFFF
##7976201.004.754.434.75
#FFFFFF4.751.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#807111
Deuteranopia (green-blind)
#827426
Tritanopia (blue-blind)
#826E65
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #797620;
/* rgb */ color: rgb(121, 118, 32);
/* oklch */ color: oklch(55.2% 0.105 107.4);
Tailwind
colors: {
  custom: {
    50: '#a39d62',
    500: '#797620',
    950: '#000000',
  },
}
SCSS
$custom: #797620;
$custom-light: #a39d62;
$custom-dark: #000000;
JSON
{
  "hex": "#797620",
  "rgb": {
    "r": 121,
    "g": 118,
    "b": 32
  },
  "hsl": {
    "h": 57.978,
    "s": 58.17,
    "l": 30
  },
  "oklch": {
    "l": 0.55199,
    "c": 0.10493,
    "h": 107.4
  },
  "luminance": 0.17126
}

Semantic roles & 50–950 ramp

primary
#797620
secondary
#494CAC
accent
#4CE146
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #797620

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

Preview Lab → · Contrast checker → · Palette generator →

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