#797D20#797D20

#797D20 is a mid, moderate yellow. Relative luminance 0.188; OKLCH L 56.9% C 0.113 H 111.9°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#797D20
RGBrgb(121, 125, 32)
HSLhsl(63, 59%, 31%)
HSVhsv(63, 74%, 49%)
CMYKcmyk(3.2%, 0%, 74.4%, 51%)
CIE-LABlab(50.50, -13.57, 47.14)
CIE-LCHlch(50.50, 49.06, 106.05°)
OKLaboklab(56.86% -0.0421 0.1044)
OKLCHoklch(56.86% 0.113 111.9)
XYZxyz(15.4800, 18.8368, 4.1866)
Luminance0.1884 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D20 #24207D
analogous
#7D5220 #797D20 #4A7D20
triadic
#797D20 #20797D #7D2079
tetradic
#797D20 #207D52 #24207D #7D204A
square
#797D20 #207D52 #24207D #7D204A
split-complementary
#797D20 #204A7D #52207D
monochromatic
#1B1C07 #4A4C14 #797D20 #A8AE2C #CAD047

Accessibility & contrast

On white

4.41
#797D20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#797D20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797D20
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797D20#FFFFFF#000000##000000
##797D201.004.414.774.77
#FFFFFF4.411.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#87770F
Deuteranopia (green-blind)
#877927
Tritanopia (blue-blind)
#82756B
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797d20;
/* rgb */ color: rgb(121, 125, 32);
/* oklch */ color: oklch(56.9% 0.113 111.9);
Tailwind
colors: {
  custom: {
    50: '#a3a263',
    500: '#797d20',
    950: '#000000',
  },
}
SCSS
$custom: #797d20;
$custom-light: #a3a263;
$custom-dark: #000000;
JSON
{
  "hex": "#797d20",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 32
  },
  "hsl": {
    "h": 62.581,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.56858,
    "c": 0.11255,
    "h": 111.9
  },
  "luminance": 0.18836
}

Semantic roles & 50–950 ramp

primary
#797D20
secondary
#4D49B0
accent
#45E24C
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #797D20

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

Preview Lab → · Contrast checker → · Palette generator →

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