#798E52#798E52

#798E52 is a mid, moderate yellow-green. Relative luminance 0.240; OKLCH L 61.5% C 0.087 H 124.7°. Best body text is #000000 at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#798E52
RGBrgb(121, 142, 82)
HSLhsl(81, 27%, 44%)
HSVhsv(81, 42%, 56%)
CMYKcmyk(14.8%, 0%, 42.3%, 44.3%)
CIE-LABlab(56.11, -18.04, 29.48)
CIE-LCHlch(56.11, 34.56, 121.47°)
OKLaboklab(61.53% -0.0497 0.0719)
OKLCHoklch(61.53% 0.087 124.7)
XYZxyz(19.0811, 24.0200, 11.6121)
Luminance0.2402 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798E52 #67528E
analogous
#8E8552 #798E52 #5B8E52
triadic
#798E52 #52798E #8E5279
tetradic
#798E52 #528E85 #67528E #8E525B
square
#798E52 #528E85 #67528E #8E525B
split-complementary
#798E52 #525B8E #85528E
monochromatic
#374025 #58673C #798E52 #98AD70 #B4C397

Accessibility & contrast

On white

3.62
#798E52 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.80
#798E52 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798E52
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798E52#FFFFFF#000000##000000
##798E521.003.625.805.80
#FFFFFF3.621.0021.0021.00
#0000005.8021.001.001.00
##0000005.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#94874D
Deuteranopia (green-blind)
#918655
Tritanopia (blue-blind)
#7D897F
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798e52;
/* rgb */ color: rgb(121, 142, 82);
/* oklch */ color: oklch(61.5% 0.087 124.7);
Tailwind
colors: {
  custom: {
    50: '#a1af83',
    500: '#798e52',
    950: '#000000',
  },
}
SCSS
$custom: #798e52;
$custom-light: #a1af83;
$custom-dark: #000000;
JSON
{
  "hex": "#798e52",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 82
  },
  "hsl": {
    "h": 81,
    "s": 26.786,
    "l": 43.922
  },
  "oklch": {
    "l": 0.61531,
    "c": 0.08746,
    "h": 124.7
  },
  "luminance": 0.2402
}

Semantic roles & 50–950 ramp

primary
#798E52
secondary
#988CB0
accent
#65C386
background
#F9FAF8
surface
#F2F4EF
border
#CCCECA
text
#0F100B
muted
#7E7F7C

Preview Lab

Preview with #798E52

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

Preview Lab → · Contrast checker → · Palette generator →

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