#798D23#798D23

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

Color values

HEX#798D23
RGBrgb(121, 141, 35)
HSLhsl(71, 60%, 35%)
HSVhsv(71, 75%, 55%)
CMYKcmyk(14.2%, 0%, 75.2%, 44.7%)
CIE-LABlab(55.31, -21.79, 50.67)
CIE-LCHlch(55.31, 55.15, 113.27°)
OKLaboklab(60.73% -0.0646 0.1124)
OKLCHoklch(60.73% 0.13 119.9)
XYZxyz(17.7137, 23.2361, 5.1416)
Luminance0.2324 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798D23 #37238D
analogous
#8D6C23 #798D23 #448D23
triadic
#798D23 #23798D #8D2379
tetradic
#798D23 #238D6C #37238D #8D2344
square
#798D23 #238D6C #37238D #8D2344
split-complementary
#798D23 #23448D #6C238D
monochromatic
#252B0B #4F5C17 #798D23 #A3BE2F #BDD555

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798D23#FFFFFF#000000##000000
##798D231.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)
#96850D
Deuteranopia (green-blind)
#94852C
Tritanopia (blue-blind)
#808579
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798d23;
/* rgb */ color: rgb(121, 141, 35);
/* oklch */ color: oklch(60.7% 0.130 119.9);
Tailwind
colors: {
  custom: {
    50: '#a3ae66',
    500: '#798d23',
    950: '#000000',
  },
}
SCSS
$custom: #798d23;
$custom-light: #a3ae66;
$custom-dark: #000000;
JSON
{
  "hex": "#798d23",
  "rgb": {
    "r": 121,
    "g": 141,
    "b": 35
  },
  "hsl": {
    "h": 71.321,
    "s": 60.227,
    "l": 34.51
  },
  "oklch": {
    "l": 0.60734,
    "c": 0.1296,
    "h": 119.9
  },
  "luminance": 0.23236
}

Semantic roles & 50–950 ramp

primary
#798D23
secondary
#6653B9
accent
#44E362
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798D23

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

Preview Lab → · Contrast checker → · Palette generator →

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