#798B28#798B28

#798B28 is a mid, vivid yellow-green. Relative luminance 0.227; OKLCH L 60.3% C 0.124 H 119.2°. Best body text is #000000 at 5.54:1 contrast (WCAG AA passes).

Color values

HEX#798B28
RGBrgb(121, 139, 40)
HSLhsl(71, 55%, 35%)
HSVhsv(71, 71%, 55%)
CMYKcmyk(12.9%, 0%, 71.2%, 45.5%)
CIE-LABlab(54.74, -20.48, 48.21)
CIE-LCHlch(54.74, 52.38, 113.02°)
OKLaboklab(60.29% -0.0605 0.108)
OKLCHoklch(60.29% 0.124 119.2)
XYZxyz(17.5011, 22.6835, 5.4635)
Luminance0.2268 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798B28 #3A288B
analogous
#8B6B28 #798B28 #488B28
triadic
#798B28 #28798B #8B2879
tetradic
#798B28 #288B6B #3A288B #8B2848
square
#798B28 #288B6B #3A288B #8B2848
split-complementary
#798B28 #28488B #6B288B
monochromatic
#262C0D #505B1A #798B28 #A2BB36 #BBD05D

Accessibility & contrast

On white

3.79
#798B28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.54
#798B28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798B28
5.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798B28#FFFFFF#000000##000000
##798B281.003.795.545.54
#FFFFFF3.791.0021.0021.00
#0000005.5421.001.001.00
##0000005.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#948318
Deuteranopia (green-blind)
#928330
Tritanopia (blue-blind)
#808377
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #798b28;
/* rgb */ color: rgb(121, 139, 40);
/* oklch */ color: oklch(60.3% 0.124 119.2);
Tailwind
colors: {
  custom: {
    50: '#a2ac68',
    500: '#798b28',
    950: '#000000',
  },
}
SCSS
$custom: #798b28;
$custom-light: #a2ac68;
$custom-dark: #000000;
JSON
{
  "hex": "#798b28",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 40
  },
  "hsl": {
    "h": 70.909,
    "s": 55.307,
    "l": 35.098
  },
  "oklch": {
    "l": 0.60286,
    "c": 0.12382,
    "h": 119.2
  },
  "luminance": 0.22683
}

Semantic roles & 50–950 ramp

primary
#798B28
secondary
#6A59B6
accent
#49DF64
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798B28

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

Preview Lab → · Contrast checker → · Palette generator →

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