#798F23#798F23

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

Color values

HEX#798F23
RGBrgb(121, 143, 35)
HSLhsl(72, 61%, 35%)
HSVhsv(72, 76%, 56%)
CMYKcmyk(15.4%, 0%, 75.5%, 43.9%)
CIE-LABlab(55.92, -22.80, 51.25)
CIE-LCHlch(55.92, 56.09, 113.99°)
OKLaboklab(61.22% -0.0674 0.1136)
OKLCHoklch(61.22% 0.132 120.7)
XYZxyz(18.0113, 23.8313, 5.2408)
Luminance0.2383 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798F23 #39238F
analogous
#8F6F23 #798F23 #438F23
triadic
#798F23 #23798F #8F2379
tetradic
#798F23 #238F6F #39238F #8F2343
square
#798F23 #238F6F #39238F #8F2343
split-complementary
#798F23 #23438F #6F238F
monochromatic
#262D0B #4F5E17 #798F23 #A3C02F #BCD657

Accessibility & contrast

On white

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

On black

5.77
#798F23 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798F23
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798F23#FFFFFF#000000##000000
##798F231.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#98860C
Deuteranopia (green-blind)
#96862D
Tritanopia (blue-blind)
#80877A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798f23;
/* rgb */ color: rgb(121, 143, 35);
/* oklch */ color: oklch(61.2% 0.132 120.7);
Tailwind
colors: {
  custom: {
    50: '#a3af66',
    500: '#798f23',
    950: '#000000',
  },
}
SCSS
$custom: #798f23;
$custom-light: #a3af66;
$custom-dark: #000000;
JSON
{
  "hex": "#798f23",
  "rgb": {
    "r": 121,
    "g": 143,
    "b": 35
  },
  "hsl": {
    "h": 72.222,
    "s": 60.674,
    "l": 34.902
  },
  "oklch": {
    "l": 0.61221,
    "c": 0.13206,
    "h": 120.7
  },
  "luminance": 0.23831
}

Semantic roles & 50–950 ramp

primary
#798F23
secondary
#6954BA
accent
#44E465
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798F23

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

Preview Lab → · Contrast checker → · Palette generator →

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