#798D1A#798D1A

#798D1A 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#798D1A
RGBrgb(121, 141, 26)
HSLhsl(70, 69%, 33%)
HSVhsv(70, 82%, 55%)
CMYKcmyk(14.2%, 0%, 81.6%, 44.7%)
CIE-LABlab(55.27, -22.21, 53.59)
CIE-LCHlch(55.27, 58.01, 112.51°)
OKLaboklab(60.68% -0.0665 0.117)
OKLCHoklch(60.68% 0.135 119.6)
XYZxyz(17.5969, 23.1894, 4.5261)
Luminance0.2319 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798D1A #2E1A8D
analogous
#8D681A #798D1A #3F8D1A
triadic
#798D1A #1A798D #8D1A79
tetradic
#798D1A #1A8D68 #2E1A8D #8D1A3F
square
#798D1A #1A8D68 #2E1A8D #8D1A3F
split-complementary
#798D1A #1A3F8D #681A8D
monochromatic
#202607 #4D5910 #798D1A #A5C124 #C2DD45

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798D1A#FFFFFF#000000##000000
##798D1A1.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)
#978400
Deuteranopia (green-blind)
#948526
Tritanopia (blue-blind)
#818578
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798d1a;
/* rgb */ color: rgb(121, 141, 26);
/* oklch */ color: oklch(60.7% 0.135 119.6);
Tailwind
colors: {
  custom: {
    50: '#a3ae62',
    500: '#798d1a',
    950: '#000000',
  },
}
SCSS
$custom: #798d1a;
$custom-light: #a3ae62;
$custom-dark: #000000;
JSON
{
  "hex": "#798d1a",
  "rgb": {
    "r": 121,
    "g": 141,
    "b": 26
  },
  "hsl": {
    "h": 70.435,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.6068,
    "c": 0.13452,
    "h": 119.6
  },
  "luminance": 0.23189
}

Semantic roles & 50–950 ramp

primary
#798D1A
secondary
#5A45BE
accent
#3CEC5B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #798D1A

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

Preview Lab → · Contrast checker → · Palette generator →

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