#798E21#798E21

#798E21 is a mid, vivid yellow-green. Relative luminance 0.235; OKLCH L 61.0% C 0.132 H 120.2°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#798E21
RGBrgb(121, 142, 33)
HSLhsl(72, 62%, 34%)
HSVhsv(72, 77%, 56%)
CMYKcmyk(14.8%, 0%, 76.8%, 44.3%)
CIE-LABlab(55.60, -22.40, 51.65)
CIE-LCHlch(55.60, 56.30, 113.45°)
OKLaboklab(60.96% -0.0664 0.1141)
OKLCHoklch(60.96% 0.132 120.2)
XYZxyz(17.8330, 23.5208, 5.0391)
Luminance0.2352 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798E21 #36218E
analogous
#8E6D21 #798E21 #428E21
triadic
#798E21 #21798E #8E2179
tetradic
#798E21 #218E6D #36218E #8E2142
square
#798E21 #218E6D #36218E #8E2142
split-complementary
#798E21 #21428E #6D218E
monochromatic
#242B0A #4F5C15 #798E21 #A3C02D #BDD752

Accessibility & contrast

On white

3.68
#798E21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#798E21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798E21
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798E21#FFFFFF#000000##000000
##798E211.003.685.705.70
#FFFFFF3.681.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#978507
Deuteranopia (green-blind)
#95852B
Tritanopia (blue-blind)
#808679
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #798e21;
/* rgb */ color: rgb(121, 142, 33);
/* oklch */ color: oklch(61.0% 0.132 120.2);
Tailwind
colors: {
  custom: {
    50: '#a3af65',
    500: '#798e21',
    950: '#000000',
  },
}
SCSS
$custom: #798e21;
$custom-light: #a3af65;
$custom-dark: #000000;
JSON
{
  "hex": "#798e21",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 33
  },
  "hsl": {
    "h": 71.56,
    "s": 62.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.60964,
    "c": 0.13202,
    "h": 120.2
  },
  "luminance": 0.23521
}

Semantic roles & 50–950 ramp

primary
#798E21
secondary
#6550BA
accent
#42E562
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798E21

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

Preview Lab → · Contrast checker → · Palette generator →

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