#798D18#798D18

#798D18 is a mid, vivid yellow-green. Relative luminance 0.232; OKLCH L 60.7% C 0.135 H 119.6°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#798D18
RGBrgb(121, 141, 24)
HSLhsl(70, 71%, 32%)
HSVhsv(70, 83%, 55%)
CMYKcmyk(14.2%, 0%, 83%, 44.7%)
CIE-LABlab(55.26, -22.29, 54.16)
CIE-LCHlch(55.26, 58.57, 112.37°)
OKLaboklab(60.67% -0.0668 0.1178)
OKLCHoklch(60.67% 0.135 119.6)
XYZxyz(17.5753, 23.1807, 4.4124)
Luminance0.2318 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798D18 #2C188D
analogous
#8D6618 #798D18 #3F8D18
triadic
#798D18 #18798D #8D1879
tetradic
#798D18 #188D66 #2C188D #8D183F
square
#798D18 #188D66 #2C188D #8D183F
split-complementary
#798D18 #183F8D #66188D
monochromatic
#1F2406 #4C590F #798D18 #A6C121 #C4DF41

Accessibility & contrast

On white

3.73
#798D18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#798D18 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798D18
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798D18#FFFFFF#000000##000000
##798D181.003.735.645.64
#FFFFFF3.731.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#978400
Deuteranopia (green-blind)
#948524
Tritanopia (blue-blind)
#818578
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798d18;
/* rgb */ color: rgb(121, 141, 24);
/* oklch */ color: oklch(60.7% 0.135 119.6);
Tailwind
colors: {
  custom: {
    50: '#a3ae61',
    500: '#798d18',
    950: '#000000',
  },
}
SCSS
$custom: #798d18;
$custom-light: #a3ae61;
$custom-dark: #000000;
JSON
{
  "hex": "#798d18",
  "rgb": {
    "r": 121,
    "g": 141,
    "b": 24
  },
  "hsl": {
    "h": 70.256,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.6067,
    "c": 0.13545,
    "h": 119.6
  },
  "luminance": 0.23181
}

Semantic roles & 50–950 ramp

primary
#798D18
secondary
#5742BF
accent
#3AEE59
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #798D18

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

Preview Lab → · Contrast checker → · Palette generator →

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