#798F18#798F18

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

Color values

HEX#798F18
RGBrgb(121, 143, 24)
HSLhsl(71, 71%, 33%)
HSVhsv(71, 83%, 56%)
CMYKcmyk(15.4%, 0%, 83.2%, 43.9%)
CIE-LABlab(55.86, -23.30, 54.69)
CIE-LCHlch(55.86, 59.45, 113.07°)
OKLaboklab(61.16% -0.0696 0.119)
OKLCHoklch(61.16% 0.138 120.3)
XYZxyz(17.8729, 23.7759, 4.5116)
Luminance0.2378 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798F18 #2E188F
analogous
#8F6918 #798F18 #3E8F18
triadic
#798F18 #18798F #8F1879
tetradic
#798F18 #188F69 #2E188F #8F183E
square
#798F18 #188F69 #2E188F #8F183E
split-complementary
#798F18 #183E8F #69188F
monochromatic
#202606 #4D5B0F #798F18 #A5C321 #C2DF42

Accessibility & contrast

On white

3.65
#798F18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#798F18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798F18
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798F18#FFFFFF#000000##000000
##798F181.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#968625
Tritanopia (blue-blind)
#80877A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798f18;
/* rgb */ color: rgb(121, 143, 24);
/* oklch */ color: oklch(61.2% 0.138 120.3);
Tailwind
colors: {
  custom: {
    50: '#a3af62',
    500: '#798f18',
    950: '#000000',
  },
}
SCSS
$custom: #798f18;
$custom-light: #a3af62;
$custom-dark: #000000;
JSON
{
  "hex": "#798f18",
  "rgb": {
    "r": 121,
    "g": 143,
    "b": 24
  },
  "hsl": {
    "h": 71.092,
    "s": 71.257,
    "l": 32.745
  },
  "oklch": {
    "l": 0.61158,
    "c": 0.13782,
    "h": 120.3
  },
  "luminance": 0.23776
}

Semantic roles & 50–950 ramp

primary
#798F18
secondary
#5A43C0
accent
#3AEE5B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #798F18

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

Preview Lab → · Contrast checker → · Palette generator →

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