#798F21#798F21

#798F21 is a mid, vivid yellow-green. Relative luminance 0.238; OKLCH L 61.2% C 0.133 H 120.6°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#798F21
RGBrgb(121, 143, 33)
HSLhsl(72, 63%, 35%)
HSVhsv(72, 77%, 56%)
CMYKcmyk(15.4%, 0%, 76.9%, 43.9%)
CIE-LABlab(55.91, -22.90, 51.94)
CIE-LCHlch(55.91, 56.76, 113.80°)
OKLaboklab(61.21% -0.0678 0.1147)
OKLCHoklch(61.21% 0.133 120.6)
XYZxyz(17.9825, 23.8197, 5.0889)
Luminance0.2382 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798F21 #37218F
analogous
#8F6E21 #798F21 #428F21
triadic
#798F21 #21798F #8F2179
tetradic
#798F21 #218F6E #37218F #8F2142
square
#798F21 #218F6E #37218F #8F2142
split-complementary
#798F21 #21428F #6E218F
monochromatic
#252C0A #4F5D16 #798F21 #A3C12C #BDD753

Accessibility & contrast

On white

3.64
#798F21 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#798F21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798F21
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798F21#FFFFFF#000000##000000
##798F211.003.645.765.76
#FFFFFF3.641.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#988607
Deuteranopia (green-blind)
#96862B
Tritanopia (blue-blind)
#80877A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798f21;
/* rgb */ color: rgb(121, 143, 33);
/* oklch */ color: oklch(61.2% 0.133 120.6);
Tailwind
colors: {
  custom: {
    50: '#a3af65',
    500: '#798f21',
    950: '#000000',
  },
}
SCSS
$custom: #798f21;
$custom-light: #a3af65;
$custom-dark: #000000;
JSON
{
  "hex": "#798f21",
  "rgb": {
    "r": 121,
    "g": 143,
    "b": 33
  },
  "hsl": {
    "h": 72,
    "s": 62.5,
    "l": 34.51
  },
  "oklch": {
    "l": 0.61208,
    "c": 0.13323,
    "h": 120.6
  },
  "luminance": 0.2382
}

Semantic roles & 50–950 ramp

primary
#798F21
secondary
#6651BB
accent
#42E663
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798F21

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

Preview Lab → · Contrast checker → · Palette generator →

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