#798D21#798D21

#798D21 is a mid, vivid yellow-green. Relative luminance 0.232; OKLCH L 60.7% C 0.131 H 119.8°. Best body text is #000000 at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#798D21
RGBrgb(121, 141, 33)
HSLhsl(71, 62%, 34%)
HSVhsv(71, 77%, 55%)
CMYKcmyk(14.2%, 0%, 76.6%, 44.7%)
CIE-LABlab(55.30, -21.89, 51.37)
CIE-LCHlch(55.30, 55.84, 113.09°)
OKLaboklab(60.72% -0.065 0.1135)
OKLCHoklch(60.72% 0.131 119.8)
XYZxyz(17.6849, 23.2246, 4.9897)
Luminance0.2323 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798D21 #35218D
analogous
#8D6B21 #798D21 #438D21
triadic
#798D21 #21798D #8D2179
tetradic
#798D21 #218D6B #35218D #8D2143
square
#798D21 #218D6B #35218D #8D2143
split-complementary
#798D21 #21438D #6B218D
monochromatic
#242A0A #4E5B15 #798D21 #A4BF2D #BED652

Accessibility & contrast

On white

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

On black

5.65
#798D21 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798D21
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798D21#FFFFFF#000000##000000
##798D211.003.725.655.65
#FFFFFF3.721.0021.0021.00
#0000005.6521.001.001.00
##0000005.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#968508
Deuteranopia (green-blind)
#94852B
Tritanopia (blue-blind)
#808579
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798d21;
/* rgb */ color: rgb(121, 141, 33);
/* oklch */ color: oklch(60.7% 0.131 119.8);
Tailwind
colors: {
  custom: {
    50: '#a3ae65',
    500: '#798d21',
    950: '#000000',
  },
}
SCSS
$custom: #798d21;
$custom-light: #a3ae65;
$custom-dark: #000000;
JSON
{
  "hex": "#798d21",
  "rgb": {
    "r": 121,
    "g": 141,
    "b": 33
  },
  "hsl": {
    "h": 71.111,
    "s": 62.069,
    "l": 34.118
  },
  "oklch": {
    "l": 0.60721,
    "c": 0.1308,
    "h": 119.8
  },
  "luminance": 0.23225
}

Semantic roles & 50–950 ramp

primary
#798D21
secondary
#6350BA
accent
#43E561
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798D21

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

Preview Lab → · Contrast checker → · Palette generator →

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