#798C38#798C38

#798C38 is a mid, moderate yellow-green. Relative luminance 0.231; OKLCH L 60.7% C 0.112 H 120.6°. Best body text is #000000 at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#798C38
RGBrgb(121, 140, 56)
HSLhsl(74, 43%, 38%)
HSVhsv(74, 60%, 55%)
CMYKcmyk(13.6%, 0%, 60%, 45.1%)
CIE-LABlab(55.18, -19.81, 41.65)
CIE-LCHlch(55.18, 46.12, 115.43°)
OKLaboklab(60.68% -0.057 0.0965)
OKLCHoklch(60.68% 0.112 120.6)
XYZxyz(17.9773, 23.1067, 7.2536)
Luminance0.2311 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798C38 #4B388C
analogous
#8C7538 #798C38 #4F8C38
triadic
#798C38 #38798C #8C3879
tetradic
#798C38 #388C75 #4B388C #8C384F
square
#798C38 #388C75 #4B388C #8C384F
split-complementary
#798C38 #384F8C #75388C
monochromatic
#2D3515 #536027 #798C38 #9EB74A #B6C876

Accessibility & contrast

On white

3.74
#798C38 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.62
#798C38 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798C38
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798C38#FFFFFF#000000##000000
##798C381.003.745.625.62
#FFFFFF3.741.0021.0021.00
#0000005.6221.001.001.00
##0000005.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#94842F
Deuteranopia (green-blind)
#92843D
Tritanopia (blue-blind)
#7F857A
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798c38;
/* rgb */ color: rgb(121, 140, 56);
/* oklch */ color: oklch(60.7% 0.112 120.6);
Tailwind
colors: {
  custom: {
    50: '#a2ad72',
    500: '#798c38',
    950: '#000000',
  },
}
SCSS
$custom: #798c38;
$custom-light: #a2ad72;
$custom-dark: #000000;
JSON
{
  "hex": "#798c38",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 56
  },
  "hsl": {
    "h": 73.571,
    "s": 42.857,
    "l": 38.431
  },
  "oklch": {
    "l": 0.60681,
    "c": 0.1121,
    "h": 120.6
  },
  "luminance": 0.23107
}

Semantic roles & 50–950 ramp

primary
#798C38
secondary
#7E6FB1
accent
#55D372
background
#FAFAF7
surface
#F4F4ED
border
#CECEC8
text
#0F1008
muted
#7F7F7B

Preview Lab

Preview with #798C38

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

Preview Lab → · Contrast checker → · Palette generator →

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