#797B20#797B20

#797B20 is a mid, moderate yellow. Relative luminance 0.183; OKLCH L 56.4% C 0.110 H 110.7°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#797B20
RGBrgb(121, 123, 32)
HSLhsl(61, 59%, 30%)
HSVhsv(61, 74%, 48%)
CMYKcmyk(1.6%, 0%, 74%, 51.8%)
CIE-LABlab(49.90, -12.48, 46.57)
CIE-LCHlch(49.90, 48.21, 105.01°)
OKLaboklab(56.38% -0.039 0.1032)
OKLCHoklch(56.38% 0.11 110.7)
XYZxyz(15.2293, 18.3356, 4.1031)
Luminance0.1834 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797B20 #22207B
analogous
#7B5020 #797B20 #4B7B20
triadic
#797B20 #20797B #7B2079
tetradic
#797B20 #207B50 #22207B #7B204B
square
#797B20 #207B50 #22207B #7B204B
split-complementary
#797B20 #204B7B #50207B
monochromatic
#191A07 #494A13 #797B20 #A9AC2D #CCCF46

Accessibility & contrast

On white

4.50
#797B20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#797B20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797B20
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797B20#FFFFFF#000000##000000
##797B201.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#85750F
Deuteranopia (green-blind)
#867827
Tritanopia (blue-blind)
#827369
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797b20;
/* rgb */ color: rgb(121, 123, 32);
/* oklch */ color: oklch(56.4% 0.110 110.7);
Tailwind
colors: {
  custom: {
    50: '#a3a162',
    500: '#797b20',
    950: '#000000',
  },
}
SCSS
$custom: #797b20;
$custom-light: #a3a162;
$custom-dark: #000000;
JSON
{
  "hex": "#797b20",
  "rgb": {
    "r": 121,
    "g": 123,
    "b": 32
  },
  "hsl": {
    "h": 61.319,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.56382,
    "c": 0.11032,
    "h": 110.7
  },
  "luminance": 0.18335
}

Semantic roles & 50–950 ramp

primary
#797B20
secondary
#4B49AE
accent
#46E249
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #797B20

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

Preview Lab → · Contrast checker → · Palette generator →

#797B20 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva