#798E23#798E23

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

Color values

HEX#798E23
RGBrgb(121, 142, 35)
HSLhsl(72, 60%, 35%)
HSVhsv(72, 75%, 56%)
CMYKcmyk(14.8%, 0%, 75.4%, 44.3%)
CIE-LABlab(55.62, -22.30, 50.96)
CIE-LCHlch(55.62, 55.62, 113.63°)
OKLaboklab(60.98% -0.066 0.113)
OKLCHoklch(60.98% 0.131 120.3)
XYZxyz(17.8619, 23.5324, 5.1910)
Luminance0.2353 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798E23 #38238E
analogous
#8E6E23 #798E23 #438E23
triadic
#798E23 #23798E #8E2379
tetradic
#798E23 #238E6E #38238E #8E2343
square
#798E23 #238E6E #38238E #8E2343
split-complementary
#798E23 #23438E #6E238E
monochromatic
#252C0B #4F5D17 #798E23 #A3BF2F #BCD556

Accessibility & contrast

On white

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

On black

5.71
#798E23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798E23
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798E23#FFFFFF#000000##000000
##798E231.003.685.715.71
#FFFFFF3.681.0021.0021.00
#0000005.7121.001.001.00
##0000005.7121.001.001.00

Color blindness preview

Protanopia (red-blind)
#97850D
Deuteranopia (green-blind)
#95852C
Tritanopia (blue-blind)
#80867A
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #798e23;
/* rgb */ color: rgb(121, 142, 35);
/* oklch */ color: oklch(61.0% 0.131 120.3);
Tailwind
colors: {
  custom: {
    50: '#a3af66',
    500: '#798e23',
    950: '#000000',
  },
}
SCSS
$custom: #798e23;
$custom-light: #a3af66;
$custom-dark: #000000;
JSON
{
  "hex": "#798e23",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 35
  },
  "hsl": {
    "h": 71.776,
    "s": 60.452,
    "l": 34.706
  },
  "oklch": {
    "l": 0.60977,
    "c": 0.13083,
    "h": 120.3
  },
  "luminance": 0.23532
}

Semantic roles & 50–950 ramp

primary
#798E23
secondary
#6753B9
accent
#44E463
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798E23

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

Preview Lab → · Contrast checker → · Palette generator →

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