#798E2E#798E2E

#798E2E is a mid, vivid yellow-green. Relative luminance 0.236; OKLCH L 61.1% C 0.123 H 120.8°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#798E2E
RGBrgb(121, 142, 46)
HSLhsl(73, 51%, 37%)
HSVhsv(73, 68%, 56%)
CMYKcmyk(14.8%, 0%, 67.6%, 44.3%)
CIE-LABlab(55.69, -21.62, 46.71)
CIE-LCHlch(55.69, 51.47, 114.84°)
OKLaboklab(61.06% -0.063 0.1059)
OKLCHoklch(61.06% 0.123 120.8)
XYZxyz(18.0516, 23.6082, 6.1901)
Luminance0.2361 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798E2E #432E8E
analogous
#8E732E #798E2E #498E2E
triadic
#798E2E #2E798E #8E2E79
tetradic
#798E2E #2E8E73 #432E8E #8E2E49
square
#798E2E #2E8E73 #432E8E #8E2E49
split-complementary
#798E2E #2E498E #732E8E
monochromatic
#2A3210 #52601F #798E2E #A0BC3D #B8CE68

Accessibility & contrast

On white

3.67
#798E2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#798E2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798E2E
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798E2E#FFFFFF#000000##000000
##798E2E1.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#978621
Deuteranopia (green-blind)
#948635
Tritanopia (blue-blind)
#80877A
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #798e2e;
/* rgb */ color: rgb(121, 142, 46);
/* oklch */ color: oklch(61.1% 0.123 120.8);
Tailwind
colors: {
  custom: {
    50: '#a2af6c',
    500: '#798e2e',
    950: '#000000',
  },
}
SCSS
$custom: #798e2e;
$custom-light: #a2af6c;
$custom-dark: #000000;
JSON
{
  "hex": "#798e2e",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 46
  },
  "hsl": {
    "h": 73.125,
    "s": 51.064,
    "l": 36.863
  },
  "oklch": {
    "l": 0.61064,
    "c": 0.12321,
    "h": 120.8
  },
  "luminance": 0.23608
}

Semantic roles & 50–950 ramp

primary
#798E2E
secondary
#7563B5
accent
#4DDB6C
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798E2E

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

Preview Lab → · Contrast checker → · Palette generator →

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