#798D1E#798D1E

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

Color values

HEX#798D1E
RGBrgb(121, 141, 30)
HSLhsl(71, 65%, 34%)
HSVhsv(71, 79%, 55%)
CMYKcmyk(14.2%, 0%, 78.7%, 44.7%)
CIE-LABlab(55.29, -22.04, 52.36)
CIE-LCHlch(55.29, 56.81, 112.83°)
OKLaboklab(60.7% -0.0657 0.1151)
OKLCHoklch(60.7% 0.132 119.7)
XYZxyz(17.6447, 23.2085, 4.7782)
Luminance0.2321 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798D1E #321E8D
analogous
#8D691E #798D1E #418D1E
triadic
#798D1E #1E798D #8D1E79
tetradic
#798D1E #1E8D69 #321E8D #8D1E41
square
#798D1E #1E8D69 #321E8D #8D1E41
split-complementary
#798D1E #1E418D #691E8D
monochromatic
#222809 #4E5B13 #798D1E #A4BF29 #C0D94C

Accessibility & contrast

On white

3.72
#798D1E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##798D1E#FFFFFF#000000##000000
##798D1E1.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#948529
Tritanopia (blue-blind)
#808578
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798d1e;
/* rgb */ color: rgb(121, 141, 30);
/* oklch */ color: oklch(60.7% 0.132 119.7);
Tailwind
colors: {
  custom: {
    50: '#a3ae64',
    500: '#798d1e',
    950: '#000000',
  },
}
SCSS
$custom: #798d1e;
$custom-light: #a3ae64;
$custom-dark: #000000;
JSON
{
  "hex": "#798d1e",
  "rgb": {
    "r": 121,
    "g": 141,
    "b": 30
  },
  "hsl": {
    "h": 70.811,
    "s": 64.912,
    "l": 33.529
  },
  "oklch": {
    "l": 0.60702,
    "c": 0.13248,
    "h": 119.7
  },
  "luminance": 0.23208
}

Semantic roles & 50–950 ramp

primary
#798D1E
secondary
#5F4BBC
accent
#40E85E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798D1E

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

Preview Lab → · Contrast checker → · Palette generator →

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