#798F15#798F15

#798F15 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#798F15
RGBrgb(121, 143, 21)
HSLhsl(71, 74%, 32%)
HSVhsv(71, 85%, 56%)
CMYKcmyk(15.4%, 0%, 85.3%, 43.9%)
CIE-LABlab(55.85, -23.41, 55.48)
CIE-LCHlch(55.85, 60.21, 112.87°)
OKLaboklab(61.15% -0.0701 0.1201)
OKLCHoklch(61.15% 0.139 120.3)
XYZxyz(17.8434, 23.7641, 4.3562)
Luminance0.2376 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798F15 #2B158F
analogous
#8F6815 #798F15 #3C8F15
triadic
#798F15 #15798F #8F1579
tetradic
#798F15 #158F68 #2B158F #8F153C
square
#798F15 #158F68 #2B158F #8F153C
split-complementary
#798F15 #153C8F #68158F
monochromatic
#1F2405 #4C5A0D #798F15 #A6C41D #C4E23C

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798F15#FFFFFF#000000##000000
##798F151.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)
#968623
Tritanopia (blue-blind)
#80877A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798f15;
/* rgb */ color: rgb(121, 143, 21);
/* oklch */ color: oklch(61.1% 0.139 120.3);
Tailwind
colors: {
  custom: {
    50: '#a3af61',
    500: '#798f15',
    950: '#000000',
  },
}
SCSS
$custom: #798f15;
$custom-light: #a3af61;
$custom-dark: #000000;
JSON
{
  "hex": "#798f15",
  "rgb": {
    "r": 121,
    "g": 143,
    "b": 21
  },
  "hsl": {
    "h": 70.82,
    "s": 74.39,
    "l": 32.157
  },
  "oklch": {
    "l": 0.61145,
    "c": 0.13907,
    "h": 120.3
  },
  "luminance": 0.23764
}

Semantic roles & 50–950 ramp

primary
#798F15
secondary
#563EC2
accent
#37F158
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #798F15

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

Preview Lab → · Contrast checker → · Palette generator →

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