#797E20#797E20

#797E20 is a mid, moderate yellow. Relative luminance 0.191; OKLCH L 57.1% C 0.114 H 112.5°. Best body text is #000000 at 4.82:1 contrast (WCAG AA passes).

Color values

HEX#797E20
RGBrgb(121, 126, 32)
HSLhsl(63, 59%, 31%)
HSVhsv(63, 75%, 49%)
CMYKcmyk(4%, 0%, 74.6%, 50.6%)
CIE-LABlab(50.79, -14.11, 47.43)
CIE-LCHlch(50.79, 49.48, 106.56°)
OKLaboklab(57.1% -0.0436 0.105)
OKLCHoklch(57.1% 0.114 112.5)
XYZxyz(15.6072, 19.0913, 4.2291)
Luminance0.1909 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797E20 #25207E
analogous
#7E5420 #797E20 #4A7E20
triadic
#797E20 #20797E #7E2079
tetradic
#797E20 #207E54 #25207E #7E204A
square
#797E20 #207E54 #25207E #7E204A
split-complementary
#797E20 #204A7E #54207E
monochromatic
#1B1C07 #4A4D14 #797E20 #A8AF2C #C9D048

Accessibility & contrast

On white

4.36
#797E20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.82
#797E20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797E20
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797E20#FFFFFF#000000##000000
##797E201.004.364.824.82
#FFFFFF4.361.0021.0021.00
#0000004.8221.001.001.00
##0000004.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#88780E
Deuteranopia (green-blind)
#887A27
Tritanopia (blue-blind)
#82766C
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #797e20;
/* rgb */ color: rgb(121, 126, 32);
/* oklch */ color: oklch(57.1% 0.114 112.5);
Tailwind
colors: {
  custom: {
    50: '#a3a363',
    500: '#797e20',
    950: '#000000',
  },
}
SCSS
$custom: #797e20;
$custom-light: #a3a363;
$custom-dark: #000000;
JSON
{
  "hex": "#797e20",
  "rgb": {
    "r": 121,
    "g": 126,
    "b": 32
  },
  "hsl": {
    "h": 63.191,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.57097,
    "c": 0.11367,
    "h": 112.5
  },
  "luminance": 0.19091
}

Semantic roles & 50–950 ramp

primary
#797E20
secondary
#4E49B1
accent
#45E34E
background
#FAFAF6
surface
#F4F3EB
border
#CECDC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #797E20

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

Preview Lab → · Contrast checker → · Palette generator →

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