#798C23#798C23

#798C23 is a mid, vivid yellow-green. Relative luminance 0.229; OKLCH L 60.5% C 0.128 H 119.5°. Best body text is #000000 at 5.59:1 contrast (WCAG AA passes).

Color values

HEX#798C23
RGBrgb(121, 140, 35)
HSLhsl(71, 60%, 34%)
HSVhsv(71, 75%, 55%)
CMYKcmyk(13.6%, 0%, 75%, 45.1%)
CIE-LABlab(55.01, -21.28, 50.38)
CIE-LCHlch(55.01, 54.69, 112.90°)
OKLaboklab(60.49% -0.0632 0.1118)
OKLCHoklch(60.49% 0.128 119.5)
XYZxyz(17.5670, 22.9426, 5.0927)
Luminance0.2294 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798C23 #36238C
analogous
#8C6B23 #798C23 #458C23
triadic
#798C23 #23798C #8C2379
tetradic
#798C23 #238C6B #36238C #8C2345
square
#798C23 #238C6B #36238C #8C2345
split-complementary
#798C23 #23458C #6B238C
monochromatic
#242A0B #4F5B17 #798C23 #A3BD2F #BDD455

Accessibility & contrast

On white

3.76
#798C23 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.59
#798C23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798C23
5.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798C23#FFFFFF#000000##000000
##798C231.003.765.595.59
#FFFFFF3.761.0021.0021.00
#0000005.5921.001.001.00
##0000005.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#95840E
Deuteranopia (green-blind)
#93842C
Tritanopia (blue-blind)
#808478
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798c23;
/* rgb */ color: rgb(121, 140, 35);
/* oklch */ color: oklch(60.5% 0.128 119.5);
Tailwind
colors: {
  custom: {
    50: '#a3ad66',
    500: '#798c23',
    950: '#000000',
  },
}
SCSS
$custom: #798c23;
$custom-light: #a3ad66;
$custom-dark: #000000;
JSON
{
  "hex": "#798c23",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 35
  },
  "hsl": {
    "h": 70.857,
    "s": 60,
    "l": 34.314
  },
  "oklch": {
    "l": 0.60491,
    "c": 0.12837,
    "h": 119.5
  },
  "luminance": 0.22942
}

Semantic roles & 50–950 ramp

primary
#798C23
secondary
#6552B8
accent
#45E361
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798C23

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

Preview Lab → · Contrast checker → · Palette generator →

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