#798C2A#798C2A

#798C2A is a mid, vivid yellow-green. Relative luminance 0.230; OKLCH L 60.5% C 0.124 H 119.8°. Best body text is #000000 at 5.60:1 contrast (WCAG AA passes).

Color values

HEX#798C2A
RGBrgb(121, 140, 42)
HSLhsl(72, 54%, 36%)
HSVhsv(72, 70%, 55%)
CMYKcmyk(13.6%, 0%, 70%, 45.1%)
CIE-LABlab(55.06, -20.87, 47.72)
CIE-LCHlch(55.06, 52.08, 113.62°)
OKLaboklab(60.54% -0.0614 0.1074)
OKLCHoklch(60.54% 0.124 119.8)
XYZxyz(17.6815, 22.9884, 5.6958)
Luminance0.2299 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798C2A #3D2A8C
analogous
#8C6E2A #798C2A #488C2A
triadic
#798C2A #2A798C #8C2A79
tetradic
#798C2A #2A8C6E #3D2A8C #8C2A48
square
#798C2A #2A8C6E #3D2A8C #8C2A48
split-complementary
#798C2A #2A488C #6E2A8C
monochromatic
#282E0E #505D1C #798C2A #A2BB38 #BAD061

Accessibility & contrast

On white

3.75
#798C2A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.60
#798C2A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798C2A
5.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798C2A#FFFFFF#000000##000000
##798C2A1.003.755.605.60
#FFFFFF3.751.0021.0021.00
#0000005.6021.001.001.00
##0000005.6021.001.001.00

Color blindness preview

Protanopia (red-blind)
#95841B
Deuteranopia (green-blind)
#938432
Tritanopia (blue-blind)
#808478
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798c2a;
/* rgb */ color: rgb(121, 140, 42);
/* oklch */ color: oklch(60.5% 0.124 119.8);
Tailwind
colors: {
  custom: {
    50: '#a2ad6a',
    500: '#798c2a',
    950: '#000000',
  },
}
SCSS
$custom: #798c2a;
$custom-light: #a2ad6a;
$custom-dark: #000000;
JSON
{
  "hex": "#798c2a",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 42
  },
  "hsl": {
    "h": 71.633,
    "s": 53.846,
    "l": 35.686
  },
  "oklch": {
    "l": 0.60544,
    "c": 0.12365,
    "h": 119.8
  },
  "luminance": 0.22988
}

Semantic roles & 50–950 ramp

primary
#798C2A
secondary
#6E5CB5
accent
#4BDD67
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798C2A

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

Preview Lab → · Contrast checker → · Palette generator →

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