#797920#797920

#797920 is a mid, moderate yellow. Relative luminance 0.178; OKLCH L 55.9% C 0.108 H 109.4°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#797920
RGBrgb(121, 121, 32)
HSLhsl(60, 58%, 30%)
HSVhsv(60, 74%, 47%)
CMYKcmyk(0%, 0%, 73.6%, 52.5%)
CIE-LABlab(49.31, -11.39, 45.99)
CIE-LCHlch(49.31, 47.38, 103.91°)
OKLaboklab(55.91% -0.036 0.102)
OKLCHoklch(55.91% 0.108 109.4)
XYZxyz(14.9838, 17.8444, 4.0212)
Luminance0.1784 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797920 #202079
analogous
#794D20 #797920 #4D7920
triadic
#797920 #207979 #792079
tetradic
#797920 #20794D #202079 #79204D
square
#797920 #20794D #202079 #79204D
split-complementary
#797920 #204C79 #4C2079
monochromatic
#181806 #494913 #797920 #A9A92D #CECE45

Accessibility & contrast

On white

4.60
#797920 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.57
#797920 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #797920
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797920#FFFFFF#000000##FFFFFF
##7979201.004.604.574.60
#FFFFFF4.601.0021.001.00
#0000004.5721.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#837410
Deuteranopia (green-blind)
#847727
Tritanopia (blue-blind)
#827168
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #797920;
/* rgb */ color: rgb(121, 121, 32);
/* oklch */ color: oklch(55.9% 0.108 109.4);
Tailwind
colors: {
  custom: {
    50: '#a39f62',
    500: '#797920',
    950: '#000000',
  },
}
SCSS
$custom: #797920;
$custom-light: #a39f62;
$custom-dark: #000000;
JSON
{
  "hex": "#797920",
  "rgb": {
    "r": 121,
    "g": 121,
    "b": 32
  },
  "hsl": {
    "h": 60,
    "s": 58.17,
    "l": 30
  },
  "oklch": {
    "l": 0.55908,
    "c": 0.10813,
    "h": 109.4
  },
  "luminance": 0.17844
}

Semantic roles & 50–950 ramp

primary
#797920
secondary
#4949AC
accent
#46E146
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #797920

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

Preview Lab → · Contrast checker → · Palette generator →

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