#798347#798347

#798347 is a mid, moderate yellow-green. Relative luminance 0.208; OKLCH L 58.7% C 0.084 H 116.8°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#798347
RGBrgb(121, 131, 71)
HSLhsl(70, 30%, 40%)
HSVhsv(70, 46%, 51%)
CMYKcmyk(7.6%, 0%, 45.8%, 48.6%)
CIE-LABlab(52.68, -13.55, 31.09)
CIE-LCHlch(52.68, 33.91, 113.55°)
OKLaboklab(58.73% -0.0379 0.0749)
OKLCHoklch(58.73% 0.084 116.8)
XYZxyz(17.1389, 20.7526, 9.0628)
Luminance0.2075 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798347 #514783
analogous
#836F47 #798347 #5B8347
triadic
#798347 #477983 #834779
tetradic
#798347 #47836F #514783 #83475B
square
#798347 #47836F #514783 #83475B
split-complementary
#798347 #475B83 #6F4783
monochromatic
#30341C #545B31 #798347 #9CA85F #B5BE87

Accessibility & contrast

On white

4.08
#798347 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#798347 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798347
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798347#FFFFFF#000000##000000
##7983471.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7D42
Deuteranopia (green-blind)
#897E4A
Tritanopia (blue-blind)
#7F7D75
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #798347;
/* rgb */ color: rgb(121, 131, 71);
/* oklch */ color: oklch(58.7% 0.084 116.8);
Tailwind
colors: {
  custom: {
    50: '#a1a77b',
    500: '#798347',
    950: '#000000',
  },
}
SCSS
$custom: #798347;
$custom-light: #a1a77b;
$custom-dark: #000000;
JSON
{
  "hex": "#798347",
  "rgb": {
    "r": 121,
    "g": 131,
    "b": 71
  },
  "hsl": {
    "h": 70,
    "s": 29.703,
    "l": 39.608
  },
  "oklch": {
    "l": 0.58732,
    "c": 0.08395,
    "h": 116.8
  },
  "luminance": 0.20752
}

Semantic roles & 50–950 ramp

primary
#798347
secondary
#847CA9
accent
#62C673
background
#FAFAF7
surface
#F3F4EE
border
#CDCEC9
text
#0F0F09
muted
#7F7F7B

Preview Lab

Preview with #798347

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

Preview Lab → · Contrast checker → · Palette generator →

#798347 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva