#798B21#798B21

#798B21 is a mid, vivid yellow-green. Relative luminance 0.226; OKLCH L 60.2% C 0.128 H 119.0°. Best body text is #000000 at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#798B21
RGBrgb(121, 139, 33)
HSLhsl(70, 62%, 34%)
HSVhsv(70, 76%, 55%)
CMYKcmyk(12.9%, 0%, 76.3%, 45.5%)
CIE-LABlab(54.70, -20.87, 50.79)
CIE-LCHlch(54.70, 54.92, 112.34°)
OKLaboklab(60.24% -0.0622 0.1123)
OKLCHoklch(60.24% 0.128 119)
XYZxyz(17.3927, 22.6401, 4.8923)
Luminance0.2264 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798B21 #33218B
analogous
#8B6821 #798B21 #448B21
triadic
#798B21 #21798B #8B2179
tetradic
#798B21 #218B68 #33218B #8B2144
square
#798B21 #218B68 #33218B #8B2144
split-complementary
#798B21 #21448B #68218B
monochromatic
#23280A #4E5A15 #798B21 #A4BC2D #BFD651

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798B21#FFFFFF#000000##000000
##798B211.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)
#948309
Deuteranopia (green-blind)
#92832A
Tritanopia (blue-blind)
#808377
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #798b21;
/* rgb */ color: rgb(121, 139, 33);
/* oklch */ color: oklch(60.2% 0.128 119.0);
Tailwind
colors: {
  custom: {
    50: '#a3ac65',
    500: '#798b21',
    950: '#000000',
  },
}
SCSS
$custom: #798b21;
$custom-light: #a3ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#798b21",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 33
  },
  "hsl": {
    "h": 70.189,
    "s": 61.628,
    "l": 33.725
  },
  "oklch": {
    "l": 0.60235,
    "c": 0.12836,
    "h": 119
  },
  "luminance": 0.2264
}

Semantic roles & 50–950 ramp

primary
#798B21
secondary
#614FB9
accent
#43E55F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798B21

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

Preview Lab → · Contrast checker → · Palette generator →

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