#798E28#798E28

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

Color values

HEX#798E28
RGBrgb(121, 142, 40)
HSLhsl(72, 56%, 36%)
HSVhsv(72, 72%, 56%)
CMYKcmyk(14.8%, 0%, 71.8%, 44.3%)
CIE-LABlab(55.65, -22.01, 49.11)
CIE-LCHlch(55.65, 53.82, 114.14°)
OKLaboklab(61.01% -0.0647 0.1099)
OKLCHoklch(61.01% 0.128 120.5)
XYZxyz(17.9415, 23.5642, 5.6102)
Luminance0.2356 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798E28 #3D288E
analogous
#8E7028 #798E28 #468E28
triadic
#798E28 #28798E #8E2879
tetradic
#798E28 #288E70 #3D288E #8E2846
square
#798E28 #288E70 #3D288E #8E2846
split-complementary
#798E28 #28468E #70288E
monochromatic
#282F0D #505E1B #798E28 #A2BE35 #BAD25F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798E28#FFFFFF#000000##000000
##798E281.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)
#978617
Deuteranopia (green-blind)
#948530
Tritanopia (blue-blind)
#80867A
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #798e28;
/* rgb */ color: rgb(121, 142, 40);
/* oklch */ color: oklch(61.0% 0.128 120.5);
Tailwind
colors: {
  custom: {
    50: '#a3af69',
    500: '#798e28',
    950: '#000000',
  },
}
SCSS
$custom: #798e28;
$custom-light: #a3af69;
$custom-dark: #000000;
JSON
{
  "hex": "#798e28",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 40
  },
  "hsl": {
    "h": 72.353,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.61014,
    "c": 0.12758,
    "h": 120.5
  },
  "luminance": 0.23564
}

Semantic roles & 50–950 ramp

primary
#798E28
secondary
#6E5BB7
accent
#48DF68
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798E28

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

Preview Lab → · Contrast checker → · Palette generator →

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