#798D1D#798D1D

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

Color values

HEX#798D1D
RGBrgb(121, 141, 29)
HSLhsl(71, 66%, 33%)
HSVhsv(71, 79%, 55%)
CMYKcmyk(14.2%, 0%, 79.4%, 44.7%)
CIE-LABlab(55.28, -22.08, 52.68)
CIE-LCHlch(55.28, 57.12, 112.74°)
OKLaboklab(60.7% -0.0659 0.1156)
OKLCHoklch(60.7% 0.133 119.7)
XYZxyz(17.6322, 23.2035, 4.7120)
Luminance0.2320 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798D1D #311D8D
analogous
#8D691D #798D1D #418D1D
triadic
#798D1D #1D798D #8D1D79
tetradic
#798D1D #1D8D69 #311D8D #8D1D41
square
#798D1D #1D8D69 #311D8D #8D1D41
split-complementary
#798D1D #1D418D #691D8D
monochromatic
#222708 #4D5A13 #798D1D #A5C027 #C0DA4B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798D1D#FFFFFF#000000##000000
##798D1D1.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)
#948528
Tritanopia (blue-blind)
#808578
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798d1d;
/* rgb */ color: rgb(121, 141, 29);
/* oklch */ color: oklch(60.7% 0.133 119.7);
Tailwind
colors: {
  custom: {
    50: '#a3ae63',
    500: '#798d1d',
    950: '#000000',
  },
}
SCSS
$custom: #798d1d;
$custom-light: #a3ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#798d1d",
  "rgb": {
    "r": 121,
    "g": 141,
    "b": 29
  },
  "hsl": {
    "h": 70.714,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.60696,
    "c": 0.13302,
    "h": 119.7
  },
  "luminance": 0.23203
}

Semantic roles & 50–950 ramp

primary
#798D1D
secondary
#5E4ABC
accent
#3FE95D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798D1D

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

Preview Lab → · Contrast checker → · Palette generator →

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