#798D2E#798D2E

#798D2E is a mid, vivid yellow-green. Relative luminance 0.233; OKLCH L 60.8% C 0.122 H 120.4°. Best body text is #000000 at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#798D2E
RGBrgb(121, 141, 46)
HSLhsl(73, 51%, 37%)
HSVhsv(73, 67%, 55%)
CMYKcmyk(14.2%, 0%, 67.4%, 44.7%)
CIE-LABlab(55.39, -21.11, 46.39)
CIE-LCHlch(55.39, 50.97, 114.47°)
OKLaboklab(60.82% -0.0616 0.1052)
OKLCHoklch(60.82% 0.122 120.4)
XYZxyz(17.9034, 23.3120, 6.1407)
Luminance0.2331 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798D2E #422E8D
analogous
#8D722E #798D2E #4A8D2E
triadic
#798D2E #2E798D #8D2E79
tetradic
#798D2E #2E8D72 #422E8D #8D2E4A
square
#798D2E #2E8D72 #422E8D #8D2E4A
split-complementary
#798D2E #2E4A8D #722E8D
monochromatic
#2A3110 #515F1F #798D2E #A1BB3D #B8CE68

Accessibility & contrast

On white

3.71
#798D2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.66
#798D2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798D2E
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798D2E#FFFFFF#000000##000000
##798D2E1.003.715.665.66
#FFFFFF3.711.0021.0021.00
#0000005.6621.001.001.00
##0000005.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#968521
Deuteranopia (green-blind)
#938535
Tritanopia (blue-blind)
#80867A
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #798d2e;
/* rgb */ color: rgb(121, 141, 46);
/* oklch */ color: oklch(60.8% 0.122 120.4);
Tailwind
colors: {
  custom: {
    50: '#a2ae6c',
    500: '#798d2e',
    950: '#000000',
  },
}
SCSS
$custom: #798d2e;
$custom-light: #a2ae6c;
$custom-dark: #000000;
JSON
{
  "hex": "#798d2e",
  "rgb": {
    "r": 121,
    "g": 141,
    "b": 46
  },
  "hsl": {
    "h": 72.632,
    "s": 50.802,
    "l": 36.667
  },
  "oklch": {
    "l": 0.60821,
    "c": 0.12192,
    "h": 120.4
  },
  "luminance": 0.23312
}

Semantic roles & 50–950 ramp

primary
#798D2E
secondary
#7462B5
accent
#4EDA6B
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798D2E

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

Preview Lab → · Contrast checker → · Palette generator →

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