#798A52#798A52

#798A52 is a mid, moderate yellow-green. Relative luminance 0.229; OKLCH L 60.6% C 0.081 H 122.6°. Best body text is #000000 at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#798A52
RGBrgb(121, 138, 82)
HSLhsl(78, 25%, 43%)
HSVhsv(78, 41%, 54%)
CMYKcmyk(12.3%, 0%, 40.6%, 45.9%)
CIE-LABlab(54.92, -15.94, 27.96)
CIE-LCHlch(54.92, 32.18, 119.68°)
OKLaboklab(60.58% -0.0438 0.0685)
OKLCHoklch(60.58% 0.081 122.6)
XYZxyz(18.4966, 22.8511, 11.4173)
Luminance0.2285 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798A52 #63528A
analogous
#8A7F52 #798A52 #5D8A52
triadic
#798A52 #52798A #8A5279
tetradic
#798A52 #528A7F #63528A #8A525D
square
#798A52 #528A7F #63528A #8A525D
split-complementary
#798A52 #525D8A #7F528A
monochromatic
#363D24 #57643B #798A52 #98AA6F #B4C196

Accessibility & contrast

On white

3.77
#798A52 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.57
#798A52 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798A52
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798A52#FFFFFF#000000##000000
##798A521.003.775.575.57
#FFFFFF3.771.0021.0021.00
#0000005.5721.001.001.00
##0000005.5721.001.001.00

Color blindness preview

Protanopia (red-blind)
#90844E
Deuteranopia (green-blind)
#8E8355
Tritanopia (blue-blind)
#7D857C
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #798a52;
/* rgb */ color: rgb(121, 138, 82);
/* oklch */ color: oklch(60.6% 0.081 122.6);
Tailwind
colors: {
  custom: {
    50: '#a0ac83',
    500: '#798a52',
    950: '#000000',
  },
}
SCSS
$custom: #798a52;
$custom-light: #a0ac83;
$custom-dark: #000000;
JSON
{
  "hex": "#798a52",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 82
  },
  "hsl": {
    "h": 78.214,
    "s": 25.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.60578,
    "c": 0.08129,
    "h": 122.6
  },
  "luminance": 0.22851
}

Semantic roles & 50–950 ramp

primary
#798A52
secondary
#958AAE
accent
#66C282
background
#F9FAF8
surface
#F2F4EF
border
#CCCECA
text
#0F100B
muted
#7E7F7C

Preview Lab

Preview with #798A52

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

Preview Lab → · Contrast checker → · Palette generator →

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