#798C28#798C28

#798C28 is a mid, vivid yellow-green. Relative luminance 0.230; OKLCH L 60.5% C 0.125 H 119.7°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#798C28
RGBrgb(121, 140, 40)
HSLhsl(71, 56%, 35%)
HSVhsv(71, 71%, 55%)
CMYKcmyk(13.6%, 0%, 71.4%, 45.1%)
CIE-LABlab(55.05, -20.99, 48.51)
CIE-LCHlch(55.05, 52.86, 113.40°)
OKLaboklab(60.53% -0.0619 0.1087)
OKLCHoklch(60.53% 0.125 119.7)
XYZxyz(17.6466, 22.9744, 5.5119)
Luminance0.2297 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798C28 #3B288C
analogous
#8C6D28 #798C28 #478C28
triadic
#798C28 #28798C #8C2879
tetradic
#798C28 #288C6D #3B288C #8C2847
square
#798C28 #288C6D #3B288C #8C2847
split-complementary
#798C28 #28478C #6D288C
monochromatic
#272D0D #505C1A #798C28 #A2BC36 #BBD15E

Accessibility & contrast

On white

3.75
#798C28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#798C28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798C28
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798C28#FFFFFF#000000##000000
##798C281.003.755.595.59
#FFFFFF3.751.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#958418
Deuteranopia (green-blind)
#938430
Tritanopia (blue-blind)
#808478
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798c28;
/* rgb */ color: rgb(121, 140, 40);
/* oklch */ color: oklch(60.5% 0.125 119.7);
Tailwind
colors: {
  custom: {
    50: '#a3ad69',
    500: '#798c28',
    950: '#000000',
  },
}
SCSS
$custom: #798c28;
$custom-light: #a3ad69;
$custom-dark: #000000;
JSON
{
  "hex": "#798c28",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 40
  },
  "hsl": {
    "h": 71.4,
    "s": 55.556,
    "l": 35.294
  },
  "oklch": {
    "l": 0.60528,
    "c": 0.12508,
    "h": 119.7
  },
  "luminance": 0.22974
}

Semantic roles & 50–950 ramp

primary
#798C28
secondary
#6B5AB6
accent
#49DF65
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798C28

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

Preview Lab → · Contrast checker → · Palette generator →

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