#798A28#798A28

#798A28 is a mid, vivid yellow-green. Relative luminance 0.224; OKLCH L 60.0% C 0.123 H 118.8°. Best body text is #000000 at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#798A28
RGBrgb(121, 138, 40)
HSLhsl(70, 55%, 35%)
HSVhsv(70, 71%, 54%)
CMYKcmyk(12.3%, 0%, 71%, 45.9%)
CIE-LABlab(54.44, -19.97, 47.90)
CIE-LCHlch(54.44, 51.90, 112.63°)
OKLaboklab(60.04% -0.0591 0.1074)
OKLCHoklch(60.04% 0.123 118.8)
XYZxyz(17.3570, 22.3952, 5.4154)
Luminance0.2240 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798A28 #39288A
analogous
#8A6A28 #798A28 #488A28
triadic
#798A28 #28798A #8A2879
tetradic
#798A28 #288A6A #39288A #8A2848
square
#798A28 #288A6A #39288A #8A2848
split-complementary
#798A28 #28488A #6A288A
monochromatic
#262B0C #4F5B1A #798A28 #A3B936 #BCD05D

Accessibility & contrast

On white

3.83
#798A28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.48
#798A28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798A28
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798A28#FFFFFF#000000##000000
##798A281.003.835.485.48
#FFFFFF3.831.0021.0021.00
#0000005.4821.001.001.00
##0000005.4821.001.001.00

Color blindness preview

Protanopia (red-blind)
#938218
Deuteranopia (green-blind)
#918330
Tritanopia (blue-blind)
#808277
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #798a28;
/* rgb */ color: rgb(121, 138, 40);
/* oklch */ color: oklch(60.0% 0.123 118.8);
Tailwind
colors: {
  custom: {
    50: '#a2ac68',
    500: '#798a28',
    950: '#000000',
  },
}
SCSS
$custom: #798a28;
$custom-light: #a2ac68;
$custom-dark: #000000;
JSON
{
  "hex": "#798a28",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 40
  },
  "hsl": {
    "h": 70.408,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.60043,
    "c": 0.12258,
    "h": 118.8
  },
  "luminance": 0.22395
}

Semantic roles & 50–950 ramp

primary
#798A28
secondary
#6959B5
accent
#49DE63
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798A28

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

Preview Lab → · Contrast checker → · Palette generator →

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