#798F28#798F28

#798F28 is a mid, vivid yellow-green. Relative luminance 0.239; OKLCH L 61.3% C 0.129 H 120.9°. Best body text is #000000 at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#798F28
RGBrgb(121, 143, 40)
HSLhsl(73, 56%, 36%)
HSVhsv(73, 72%, 56%)
CMYKcmyk(15.4%, 0%, 72%, 43.9%)
CIE-LABlab(55.95, -22.52, 49.41)
CIE-LCHlch(55.95, 54.30, 114.50°)
OKLaboklab(61.26% -0.0661 0.1106)
OKLCHoklch(61.26% 0.129 120.9)
XYZxyz(18.0909, 23.8631, 5.6601)
Luminance0.2386 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798F28 #3E288F
analogous
#8F7128 #798F28 #458F28
triadic
#798F28 #28798F #8F2879
tetradic
#798F28 #288F71 #3E288F #8F2845
square
#798F28 #288F71 #3E288F #8F2845
split-complementary
#798F28 #28458F #71288F
monochromatic
#282F0D #515F1B #798F28 #A1BF35 #BAD25F

Accessibility & contrast

On white

3.64
#798F28 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.77
#798F28 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798F28
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798F28#FFFFFF#000000##000000
##798F281.003.645.775.77
#FFFFFF3.641.0021.0021.00
#0000005.7721.001.001.00
##0000005.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#988617
Deuteranopia (green-blind)
#958630
Tritanopia (blue-blind)
#80877B
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798f28;
/* rgb */ color: rgb(121, 143, 40);
/* oklch */ color: oklch(61.3% 0.129 120.9);
Tailwind
colors: {
  custom: {
    50: '#a3af69',
    500: '#798f28',
    950: '#000000',
  },
}
SCSS
$custom: #798f28;
$custom-light: #a3af69;
$custom-dark: #000000;
JSON
{
  "hex": "#798f28",
  "rgb": {
    "r": 121,
    "g": 143,
    "b": 40
  },
  "hsl": {
    "h": 72.816,
    "s": 56.284,
    "l": 35.882
  },
  "oklch": {
    "l": 0.61257,
    "c": 0.12884,
    "h": 120.9
  },
  "luminance": 0.23863
}

Semantic roles & 50–950 ramp

primary
#798F28
secondary
#6F5BB8
accent
#48E069
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798F28

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

Preview Lab → · Contrast checker → · Palette generator →

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