#797A20#797A20

#797A20 is a mid, moderate yellow. Relative luminance 0.181; OKLCH L 56.1% C 0.109 H 110.1°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#797A20
RGBrgb(121, 122, 32)
HSLhsl(61, 58%, 30%)
HSVhsv(61, 74%, 48%)
CMYKcmyk(0.8%, 0%, 73.8%, 52.2%)
CIE-LABlab(49.60, -11.94, 46.28)
CIE-LCHlch(49.60, 47.80, 104.46°)
OKLaboklab(56.15% -0.0375 0.1026)
OKLCHoklch(56.15% 0.109 110.1)
XYZxyz(15.1059, 18.0887, 4.0620)
Luminance0.1809 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797A20 #21207A
analogous
#7A4E20 #797A20 #4C7A20
triadic
#797A20 #20797A #7A2079
tetradic
#797A20 #207A4E #21207A #7A204C
square
#797A20 #207A4E #21207A #7A204C
split-complementary
#797A20 #204C7A #4E207A
monochromatic
#191907 #494A13 #797A20 #A9AA2D #CDCE46

Accessibility & contrast

On white

4.55
#797A20 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#797A20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797A20
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797A20#FFFFFF#000000##000000
##797A201.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#847510
Deuteranopia (green-blind)
#857727
Tritanopia (blue-blind)
#827269
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #797a20;
/* rgb */ color: rgb(121, 122, 32);
/* oklch */ color: oklch(56.1% 0.109 110.1);
Tailwind
colors: {
  custom: {
    50: '#a3a062',
    500: '#797a20',
    950: '#000000',
  },
}
SCSS
$custom: #797a20;
$custom-light: #a3a062;
$custom-dark: #000000;
JSON
{
  "hex": "#797a20",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 32
  },
  "hsl": {
    "h": 60.667,
    "s": 58.442,
    "l": 30.196
  },
  "oklch": {
    "l": 0.56145,
    "c": 0.10922,
    "h": 110.1
  },
  "luminance": 0.18088
}

Semantic roles & 50–950 ramp

primary
#797A20
secondary
#4A49AD
accent
#46E248
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E05
muted
#7F7E7A

Preview Lab

Preview with #797A20

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

Preview Lab → · Contrast checker → · Palette generator →

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