#797A28#797A28

#797A28 is a mid, moderate yellow. Relative luminance 0.181; OKLCH L 56.2% C 0.103 H 110.0°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#797A28
RGBrgb(121, 122, 40)
HSLhsl(61, 51%, 32%)
HSVhsv(61, 67%, 48%)
CMYKcmyk(0.8%, 0%, 67.2%, 52.2%)
CIE-LABlab(49.66, -11.46, 43.02)
CIE-LCHlch(49.66, 44.53, 104.92°)
OKLaboklab(56.21% -0.0353 0.0971)
OKLCHoklch(56.21% 0.103 110)
XYZxyz(15.2282, 18.1376, 4.7058)
Luminance0.1814 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#797A28 #29287A
analogous
#7A5228 #797A28 #507A28
triadic
#797A28 #28797A #7A2879
tetradic
#797A28 #287A52 #29287A #7A2850
square
#797A28 #287A52 #29287A #7A2850
split-complementary
#797A28 #28507A #52287A
monochromatic
#1E1E0A #4B4C19 #797A28 #A7A837 #C6C755

Accessibility & contrast

On white

4.54
#797A28 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#797A28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #797A28
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##797A28#FFFFFF#000000##000000
##797A281.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#84751D
Deuteranopia (green-blind)
#85772D
Tritanopia (blue-blind)
#817269
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #797a28;
/* rgb */ color: rgb(121, 122, 40);
/* oklch */ color: oklch(56.2% 0.103 110.0);
Tailwind
colors: {
  custom: {
    50: '#a2a067',
    500: '#797a28',
    950: '#000000',
  },
}
SCSS
$custom: #797a28;
$custom-light: #a2a067;
$custom-dark: #000000;
JSON
{
  "hex": "#797a28",
  "rgb": {
    "r": 121,
    "g": 122,
    "b": 40
  },
  "hsl": {
    "h": 60.732,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.56211,
    "c": 0.10336,
    "h": 110
  },
  "luminance": 0.18137
}

Semantic roles & 50–950 ramp

primary
#797A28
secondary
#5352AC
accent
#4EDA4F
background
#FAF9F6
surface
#F4F2EB
border
#CECCC6
text
#0F0E06
muted
#7F7E7A

Preview Lab

Preview with #797A28

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

Preview Lab → · Contrast checker → · Palette generator →

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