#797C20#797C20

#797C20 is a mid, moderate yellow. Relative luminance 0.186; OKLCH L 56.6% C 0.111 H 111.3°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#797C20
RGBrgb(121, 124, 32)
HSLhsl(62, 59%, 31%)
HSVhsv(62, 74%, 49%)
CMYKcmyk(2.4%, 0%, 74.2%, 51.4%)
CIE-LABlab(50.20, -13.03, 46.86)
CIE-LCHlch(50.20, 48.63, 105.54°)
OKLaboklab(56.62% -0.0406 0.1038)
OKLCHoklch(56.62% 0.111 111.3)
XYZxyz(15.3540, 18.5849, 4.1447)
Luminance0.1858 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797C20 #23207C
analogous
#7C5120 #797C20 #4B7C20
triadic
#797C20 #20797C #7C2079
tetradic
#797C20 #207C51 #23207C #7C204B
square
#797C20 #207C51 #23207C #7C204B
split-complementary
#797C20 #204B7C #51207C
monochromatic
#1A1B07 #4A4B13 #797C20 #A8AD2D #CBCF47

Accessibility & contrast

On white

4.45
#797C20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#797C20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797C20
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797C20#FFFFFF#000000##000000
##797C201.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#86760F
Deuteranopia (green-blind)
#877927
Tritanopia (blue-blind)
#82746A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #797c20;
/* rgb */ color: rgb(121, 124, 32);
/* oklch */ color: oklch(56.6% 0.111 111.3);
Tailwind
colors: {
  custom: {
    50: '#a3a163',
    500: '#797c20',
    950: '#000000',
  },
}
SCSS
$custom: #797c20;
$custom-light: #a3a163;
$custom-dark: #000000;
JSON
{
  "hex": "#797c20",
  "rgb": {
    "r": 121,
    "g": 124,
    "b": 32
  },
  "hsl": {
    "h": 61.957,
    "s": 58.974,
    "l": 30.588
  },
  "oklch": {
    "l": 0.5662,
    "c": 0.11142,
    "h": 111.3
  },
  "luminance": 0.18585
}

Semantic roles & 50–950 ramp

primary
#797C20
secondary
#4C49AF
accent
#46E24B
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F05
muted
#7F7E7A

Preview Lab

Preview with #797C20

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

Preview Lab → · Contrast checker → · Palette generator →

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