#798F2E#798F2E

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

Color values

HEX#798F2E
RGBrgb(121, 143, 46)
HSLhsl(74, 51%, 37%)
HSVhsv(74, 68%, 56%)
CMYKcmyk(15.4%, 0%, 67.8%, 43.9%)
CIE-LABlab(55.99, -22.13, 47.02)
CIE-LCHlch(55.99, 51.97, 115.20°)
OKLaboklab(61.31% -0.0645 0.1065)
OKLCHoklch(61.31% 0.125 121.2)
XYZxyz(18.2010, 23.9071, 6.2399)
Luminance0.2391 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798F2E #442E8F
analogous
#8F752E #798F2E #498F2E
triadic
#798F2E #2E798F #8F2E79
tetradic
#798F2E #2E8F75 #442E8F #8F2E49
square
#798F2E #2E8F75 #442E8F #8F2E49
split-complementary
#798F2E #2E498F #752E8F
monochromatic
#2B3210 #52611F #798F2E #A0BD3D #B8CF69

Accessibility & contrast

On white

3.63
#798F2E on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#798F2E on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798F2E
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798F2E#FFFFFF#000000##000000
##798F2E1.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#988720
Deuteranopia (green-blind)
#958635
Tritanopia (blue-blind)
#80887B
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798f2e;
/* rgb */ color: rgb(121, 143, 46);
/* oklch */ color: oklch(61.3% 0.124 121.2);
Tailwind
colors: {
  custom: {
    50: '#a2af6c',
    500: '#798f2e',
    950: '#000000',
  },
}
SCSS
$custom: #798f2e;
$custom-light: #a2af6c;
$custom-dark: #000000;
JSON
{
  "hex": "#798f2e",
  "rgb": {
    "r": 121,
    "g": 143,
    "b": 46
  },
  "hsl": {
    "h": 73.608,
    "s": 51.323,
    "l": 37.059
  },
  "oklch": {
    "l": 0.61306,
    "c": 0.1245,
    "h": 121.2
  },
  "luminance": 0.23907
}

Semantic roles & 50–950 ramp

primary
#798F2E
secondary
#7663B6
accent
#4DDB6D
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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