#797D28#797D28

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

Color values

HEX#797D28
RGBrgb(121, 125, 40)
HSLhsl(63, 52%, 32%)
HSVhsv(63, 68%, 49%)
CMYKcmyk(3.2%, 0%, 68%, 51%)
CIE-LABlab(50.55, -13.10, 43.95)
CIE-LCHlch(50.55, 45.86, 106.60°)
OKLaboklab(56.92% -0.0399 0.0991)
OKLCHoklch(56.92% 0.107 111.9)
XYZxyz(15.6022, 18.8857, 4.8305)
Luminance0.1888 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797D28 #2C287D
analogous
#7D5728 #797D28 #4E7D28
triadic
#797D28 #28797D #7D2879
tetradic
#797D28 #287D57 #2C287D #7D284E
square
#797D28 #287D57 #2C287D #7D284E
split-complementary
#797D28 #284E7D #57287D
monochromatic
#1F200A #4C4F19 #797D28 #A6AB37 #C4C956

Accessibility & contrast

On white

4.40
#797D28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#797D28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797D28
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797D28#FFFFFF#000000##000000
##797D281.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#87771C
Deuteranopia (green-blind)
#87792E
Tritanopia (blue-blind)
#81756C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #797d28;
/* rgb */ color: rgb(121, 125, 40);
/* oklch */ color: oklch(56.9% 0.107 111.9);
Tailwind
colors: {
  custom: {
    50: '#a2a267',
    500: '#797d28',
    950: '#000000',
  },
}
SCSS
$custom: #797d28;
$custom-light: #a2a267;
$custom-dark: #000000;
JSON
{
  "hex": "#797d28",
  "rgb": {
    "r": 121,
    "g": 125,
    "b": 40
  },
  "hsl": {
    "h": 62.824,
    "s": 51.515,
    "l": 32.353
  },
  "oklch": {
    "l": 0.56923,
    "c": 0.10682,
    "h": 111.9
  },
  "luminance": 0.18885
}

Semantic roles & 50–950 ramp

primary
#797D28
secondary
#5753AE
accent
#4DDB54
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0F06
muted
#7F7E7A

Preview Lab

Preview with #797D28

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

Preview Lab → · Contrast checker → · Palette generator →

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