#798B25#798B25

#798B25 is a mid, vivid yellow-green. Relative luminance 0.227; OKLCH L 60.3% C 0.126 H 119.1°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#798B25
RGBrgb(121, 139, 37)
HSLhsl(71, 58%, 35%)
HSVhsv(71, 73%, 55%)
CMYKcmyk(12.9%, 0%, 73.4%, 45.5%)
CIE-LABlab(54.72, -20.66, 49.35)
CIE-LCHlch(54.72, 53.50, 112.71°)
OKLaboklab(60.26% -0.0613 0.1099)
OKLCHoklch(60.26% 0.126 119.1)
XYZxyz(17.4521, 22.6639, 5.2051)
Luminance0.2266 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798B25 #37258B
analogous
#8B6A25 #798B25 #468B25
triadic
#798B25 #25798B #8B2579
tetradic
#798B25 #258B6A #37258B #8B2546
square
#798B25 #258B6A #37258B #8B2546
split-complementary
#798B25 #25468B #6A258B
monochromatic
#252A0B #4F5B18 #798B25 #A3BB32 #BDD358

Accessibility & contrast

On white

3.80
#798B25 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.53
#798B25 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798B25
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798B25#FFFFFF#000000##000000
##798B251.003.805.535.53
#FFFFFF3.801.0021.0021.00
#0000005.5321.001.001.00
##0000005.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#948313
Deuteranopia (green-blind)
#92832D
Tritanopia (blue-blind)
#808377
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #798b25;
/* rgb */ color: rgb(121, 139, 37);
/* oklch */ color: oklch(60.3% 0.126 119.1);
Tailwind
colors: {
  custom: {
    50: '#a3ac67',
    500: '#798b25',
    950: '#000000',
  },
}
SCSS
$custom: #798b25;
$custom-light: #a3ac67;
$custom-dark: #000000;
JSON
{
  "hex": "#798b25",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 37
  },
  "hsl": {
    "h": 70.588,
    "s": 57.955,
    "l": 34.51
  },
  "oklch": {
    "l": 0.60263,
    "c": 0.12586,
    "h": 119.1
  },
  "luminance": 0.22664
}

Semantic roles & 50–950 ramp

primary
#798B25
secondary
#6655B7
accent
#47E162
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798B25

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

Preview Lab → · Contrast checker → · Palette generator →

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