#798F24#798F24

#798F24 is a mid, vivid yellow-green. Relative luminance 0.238; OKLCH L 61.2% C 0.131 H 120.7°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#798F24
RGBrgb(121, 143, 36)
HSLhsl(72, 60%, 35%)
HSVhsv(72, 75%, 56%)
CMYKcmyk(15.4%, 0%, 74.8%, 43.9%)
CIE-LABlab(55.92, -22.75, 50.89)
CIE-LCHlch(55.92, 55.74, 114.08°)
OKLaboklab(61.23% -0.0671 0.113)
OKLCHoklch(61.23% 0.131 120.7)
XYZxyz(18.0264, 23.8373, 5.3201)
Luminance0.2384 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798F24 #3A248F
analogous
#8F6F24 #798F24 #448F24
triadic
#798F24 #24798F #8F2479
tetradic
#798F24 #248F6F #3A248F #8F2444
square
#798F24 #248F6F #3A248F #8F2444
split-complementary
#798F24 #24448F #6F248F
monochromatic
#262D0B #505E18 #798F24 #A2C030 #BBD558

Accessibility & contrast

On white

3.64
#798F24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#798F24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798F24
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798F24#FFFFFF#000000##000000
##798F241.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#98860F
Deuteranopia (green-blind)
#95862D
Tritanopia (blue-blind)
#80877A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798f24;
/* rgb */ color: rgb(121, 143, 36);
/* oklch */ color: oklch(61.2% 0.131 120.7);
Tailwind
colors: {
  custom: {
    50: '#a3af67',
    500: '#798f24',
    950: '#000000',
  },
}
SCSS
$custom: #798f24;
$custom-light: #a3af67;
$custom-dark: #000000;
JSON
{
  "hex": "#798f24",
  "rgb": {
    "r": 121,
    "g": 143,
    "b": 36
  },
  "hsl": {
    "h": 72.336,
    "s": 59.777,
    "l": 35.098
  },
  "oklch": {
    "l": 0.61227,
    "c": 0.13144,
    "h": 120.7
  },
  "luminance": 0.23837
}

Semantic roles & 50–950 ramp

primary
#798F24
secondary
#6A55B9
accent
#45E365
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798F24

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

Preview Lab → · Contrast checker → · Palette generator →

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