#798E38#798E38

#798E38 is a mid, moderate yellow-green. Relative luminance 0.237; OKLCH L 61.2% C 0.115 H 121.4°. Best body text is #000000 at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#798E38
RGBrgb(121, 142, 56)
HSLhsl(75, 43%, 39%)
HSVhsv(75, 61%, 56%)
CMYKcmyk(14.8%, 0%, 60.6%, 44.3%)
CIE-LABlab(55.78, -20.84, 42.32)
CIE-LCHlch(55.78, 47.17, 116.21°)
OKLaboklab(61.16% -0.0599 0.098)
OKLCHoklch(61.16% 0.115 121.4)
XYZxyz(18.2722, 23.6965, 7.3519)
Luminance0.2370 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798E38 #4D388E
analogous
#8E7838 #798E38 #4E8E38
triadic
#798E38 #38798E #8E3879
tetradic
#798E38 #388E78 #4D388E #8E384E
square
#798E38 #388E78 #4D388E #8E384E
split-complementary
#798E38 #384E8E #78388E
monochromatic
#2E3615 #546227 #798E38 #9DB84B #B5C977

Accessibility & contrast

On white

3.66
#798E38 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.74
#798E38 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798E38
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798E38#FFFFFF#000000##000000
##798E381.003.665.745.74
#FFFFFF3.661.0021.0021.00
#0000005.7421.001.001.00
##0000005.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#96862E
Deuteranopia (green-blind)
#94863E
Tritanopia (blue-blind)
#7F877C
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798e38;
/* rgb */ color: rgb(121, 142, 56);
/* oklch */ color: oklch(61.2% 0.115 121.4);
Tailwind
colors: {
  custom: {
    50: '#a2af72',
    500: '#798e38',
    950: '#000000',
  },
}
SCSS
$custom: #798e38;
$custom-light: #a2af72;
$custom-dark: #000000;
JSON
{
  "hex": "#798e38",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 56
  },
  "hsl": {
    "h": 74.651,
    "s": 43.434,
    "l": 38.824
  },
  "oklch": {
    "l": 0.61164,
    "c": 0.1148,
    "h": 121.4
  },
  "luminance": 0.23696
}

Semantic roles & 50–950 ramp

primary
#798E38
secondary
#806FB2
accent
#55D374
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1008
muted
#7F7F7B

Preview Lab

Preview with #798E38

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

Preview Lab → · Contrast checker → · Palette generator →

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