#798F16#798F16

#798F16 is a mid, vivid yellow-green. Relative luminance 0.238; OKLCH L 61.1% C 0.139 H 120.3°. Best body text is #000000 at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#798F16
RGBrgb(121, 143, 22)
HSLhsl(71, 73%, 32%)
HSVhsv(71, 85%, 56%)
CMYKcmyk(15.4%, 0%, 84.6%, 43.9%)
CIE-LABlab(55.85, -23.37, 55.22)
CIE-LCHlch(55.85, 59.97, 112.94°)
OKLaboklab(61.15% -0.0699 0.1197)
OKLCHoklch(61.15% 0.139 120.3)
XYZxyz(17.8528, 23.7679, 4.4060)
Luminance0.2377 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798F16 #2C168F
analogous
#8F6816 #798F16 #3D8F16
triadic
#798F16 #16798F #8F1679
tetradic
#798F16 #168F68 #2C168F #8F163D
square
#798F16 #168F68 #2C168F #8F163D
split-complementary
#798F16 #163D8F #68168F
monochromatic
#1F2506 #4C5A0E #798F16 #A6C41E #C4E13E

Accessibility & contrast

On white

3.65
#798F16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.75
#798F16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798F16
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798F16#FFFFFF#000000##000000
##798F161.003.655.755.75
#FFFFFF3.651.0021.0021.00
#0000005.7521.001.001.00
##0000005.7521.001.001.00

Color blindness preview

Protanopia (red-blind)
#998600
Deuteranopia (green-blind)
#968624
Tritanopia (blue-blind)
#80877A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798f16;
/* rgb */ color: rgb(121, 143, 22);
/* oklch */ color: oklch(61.1% 0.139 120.3);
Tailwind
colors: {
  custom: {
    50: '#a3af61',
    500: '#798f16',
    950: '#000000',
  },
}
SCSS
$custom: #798f16;
$custom-light: #a3af61;
$custom-dark: #000000;
JSON
{
  "hex": "#798f16",
  "rgb": {
    "r": 121,
    "g": 143,
    "b": 22
  },
  "hsl": {
    "h": 70.909,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.61149,
    "c": 0.13866,
    "h": 120.3
  },
  "luminance": 0.23768
}

Semantic roles & 50–950 ramp

primary
#798F16
secondary
#573FC1
accent
#38F059
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #798F16

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

Preview Lab → · Contrast checker → · Palette generator →

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