#798D15#798D15

#798D15 is a mid, vivid yellow-green. Relative luminance 0.232; OKLCH L 60.7% C 0.137 H 119.5°. Best body text is #000000 at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#798D15
RGBrgb(121, 141, 21)
HSLhsl(70, 74%, 32%)
HSVhsv(70, 85%, 55%)
CMYKcmyk(14.2%, 0%, 85.1%, 44.7%)
CIE-LABlab(55.25, -22.40, 54.96)
CIE-LCHlch(55.25, 59.35, 112.17°)
OKLaboklab(60.66% -0.0673 0.119)
OKLCHoklch(60.66% 0.137 119.5)
XYZxyz(17.5458, 23.1689, 4.2570)
Luminance0.2317 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798D15 #29158D
analogous
#8D6515 #798D15 #3D8D15
triadic
#798D15 #15798D #8D1579
tetradic
#798D15 #158D65 #29158D #8D153D
square
#798D15 #158D65 #29158D #8D153D
split-complementary
#798D15 #153D8D #65158D
monochromatic
#1E2205 #4B580D #798D15 #A7C21D #C6E23B

Accessibility & contrast

On white

3.73
#798D15 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.63
#798D15 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798D15
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798D15#FFFFFF#000000##000000
##798D151.003.735.635.63
#FFFFFF3.731.0021.0021.00
#0000005.6321.001.001.00
##0000005.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#978400
Deuteranopia (green-blind)
#948523
Tritanopia (blue-blind)
#818578
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798d15;
/* rgb */ color: rgb(121, 141, 21);
/* oklch */ color: oklch(60.7% 0.137 119.5);
Tailwind
colors: {
  custom: {
    50: '#a3ae60',
    500: '#798d15',
    950: '#000000',
  },
}
SCSS
$custom: #798d15;
$custom-light: #a3ae60;
$custom-dark: #000000;
JSON
{
  "hex": "#798d15",
  "rgb": {
    "r": 121,
    "g": 141,
    "b": 21
  },
  "hsl": {
    "h": 70,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.60657,
    "c": 0.13673,
    "h": 119.5
  },
  "luminance": 0.23169
}

Semantic roles & 50–950 ramp

primary
#798D15
secondary
#533DC1
accent
#37F156
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #798D15

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

Preview Lab → · Contrast checker → · Palette generator →

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