#798E24#798E24

#798E24 is a mid, vivid yellow-green. Relative luminance 0.235; OKLCH L 61.0% C 0.130 H 120.3°. Best body text is #000000 at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#798E24
RGBrgb(121, 142, 36)
HSLhsl(72, 60%, 35%)
HSVhsv(72, 75%, 56%)
CMYKcmyk(14.8%, 0%, 74.6%, 44.3%)
CIE-LABlab(55.62, -22.24, 50.60)
CIE-LCHlch(55.62, 55.27, 113.73°)
OKLaboklab(60.98% -0.0657 0.1124)
OKLCHoklch(60.98% 0.13 120.3)
XYZxyz(17.8769, 23.5384, 5.2703)
Luminance0.2354 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798E24 #39248E
analogous
#8E6E24 #798E24 #448E24
triadic
#798E24 #24798E #8E2479
tetradic
#798E24 #248E6E #39248E #8E2444
square
#798E24 #248E6E #39248E #8E2444
split-complementary
#798E24 #24448E #6E248E
monochromatic
#262C0B #4F5D18 #798E24 #A3BF30 #BCD558

Accessibility & contrast

On white

3.68
#798E24 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.71
#798E24 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798E24
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798E24#FFFFFF#000000##000000
##798E241.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#97850F
Deuteranopia (green-blind)
#95852D
Tritanopia (blue-blind)
#80867A
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #798e24;
/* rgb */ color: rgb(121, 142, 36);
/* oklch */ color: oklch(61.0% 0.130 120.3);
Tailwind
colors: {
  custom: {
    50: '#a3af67',
    500: '#798e24',
    950: '#000000',
  },
}
SCSS
$custom: #798e24;
$custom-light: #a3af67;
$custom-dark: #000000;
JSON
{
  "hex": "#798e24",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 36
  },
  "hsl": {
    "h": 71.887,
    "s": 59.551,
    "l": 34.902
  },
  "oklch": {
    "l": 0.60984,
    "c": 0.1302,
    "h": 120.3
  },
  "luminance": 0.23538
}

Semantic roles & 50–950 ramp

primary
#798E24
secondary
#6955B9
accent
#45E364
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798E24

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

Preview Lab → · Contrast checker → · Palette generator →

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