#798E51#798E51

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

Color values

HEX#798E51
RGBrgb(121, 142, 81)
HSLhsl(81, 27%, 44%)
HSVhsv(81, 43%, 56%)
CMYKcmyk(14.8%, 0%, 43%, 44.3%)
CIE-LABlab(56.09, -18.17, 30.00)
CIE-LCHlch(56.09, 35.07, 121.20°)
OKLaboklab(61.51% -0.0502 0.0731)
OKLCHoklch(61.51% 0.089 124.5)
XYZxyz(19.0433, 24.0049, 11.4131)
Luminance0.2401 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798E51 #66518E
analogous
#8E8451 #798E51 #5A8E51
triadic
#798E51 #51798E #8E5179
tetradic
#798E51 #518E84 #66518E #8E515A
square
#798E51 #518E84 #66518E #8E515A
split-complementary
#798E51 #515A8E #84518E
monochromatic
#374025 #58673B #798E51 #98AD6F #B4C396

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798E51#FFFFFF#000000##000000
##798E511.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)
#94874C
Deuteranopia (green-blind)
#918654
Tritanopia (blue-blind)
#7D897F
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798e51;
/* rgb */ color: rgb(121, 142, 81);
/* oklch */ color: oklch(61.5% 0.089 124.5);
Tailwind
colors: {
  custom: {
    50: '#a1af83',
    500: '#798e51',
    950: '#000000',
  },
}
SCSS
$custom: #798e51;
$custom-light: #a1af83;
$custom-dark: #000000;
JSON
{
  "hex": "#798e51",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 81
  },
  "hsl": {
    "h": 80.656,
    "s": 27.354,
    "l": 43.725
  },
  "oklch": {
    "l": 0.61514,
    "c": 0.08862,
    "h": 124.5
  },
  "luminance": 0.24005
}

Semantic roles & 50–950 ramp

primary
#798E51
secondary
#988BB0
accent
#64C485
background
#FAFAF8
surface
#F3F4EF
border
#CDCECA
text
#0F100A
muted
#7F7F7C

Preview Lab

Preview with #798E51

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

Preview Lab → · Contrast checker → · Palette generator →

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