#798C31#798C31

#798C31 is a mid, moderate yellow-green. Relative luminance 0.230; OKLCH L 60.6% C 0.118 H 120.1°. Best body text is #000000 at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#798C31
RGBrgb(121, 140, 49)
HSLhsl(73, 48%, 37%)
HSVhsv(73, 65%, 55%)
CMYKcmyk(13.6%, 0%, 65%, 45.1%)
CIE-LABlab(55.12, -20.38, 44.79)
CIE-LCHlch(55.12, 49.21, 114.46°)
OKLaboklab(60.61% -0.0593 0.1023)
OKLCHoklch(60.61% 0.118 120.1)
XYZxyz(17.8179, 23.0429, 6.4142)
Luminance0.2304 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798C31 #44318C
analogous
#8C7131 #798C31 #4C8C31
triadic
#798C31 #31798C #8C3179
tetradic
#798C31 #318C71 #44318C #8C314C
square
#798C31 #318C71 #44318C #8C314C
split-complementary
#798C31 #314C8C #71318C
monochromatic
#2B3111 #525F21 #798C31 #A0B941 #B8CC6C

Accessibility & contrast

On white

3.74
#798C31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.61
#798C31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798C31
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798C31#FFFFFF#000000##000000
##798C311.003.745.615.61
#FFFFFF3.741.0021.0021.00
#0000005.6121.001.001.00
##0000005.6121.001.001.00

Color blindness preview

Protanopia (red-blind)
#958426
Deuteranopia (green-blind)
#928437
Tritanopia (blue-blind)
#808579
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798c31;
/* rgb */ color: rgb(121, 140, 49);
/* oklch */ color: oklch(60.6% 0.118 120.1);
Tailwind
colors: {
  custom: {
    50: '#a2ad6e',
    500: '#798c31',
    950: '#000000',
  },
}
SCSS
$custom: #798c31;
$custom-light: #a2ad6e;
$custom-dark: #000000;
JSON
{
  "hex": "#798c31",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 49
  },
  "hsl": {
    "h": 72.527,
    "s": 48.148,
    "l": 37.059
  },
  "oklch": {
    "l": 0.60607,
    "c": 0.11822,
    "h": 120.1
  },
  "luminance": 0.23043
}

Semantic roles & 50–950 ramp

primary
#798C31
secondary
#7666B3
accent
#50D86C
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798C31

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

Preview Lab → · Contrast checker → · Palette generator →

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