#798F2C#798F2C

#798F2C is a mid, vivid yellow-green. Relative luminance 0.239; OKLCH L 61.3% C 0.126 H 121.1°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#798F2C
RGBrgb(121, 143, 44)
HSLhsl(73, 53%, 37%)
HSVhsv(73, 69%, 56%)
CMYKcmyk(15.4%, 0%, 69.2%, 43.9%)
CIE-LABlab(55.98, -22.26, 47.84)
CIE-LCHlch(55.98, 52.76, 114.96°)
OKLaboklab(61.29% -0.065 0.1079)
OKLCHoklch(61.29% 0.126 121.1)
XYZxyz(18.1625, 23.8917, 6.0371)
Luminance0.2389 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798F2C #422C8F
analogous
#8F742C #798F2C #488F2C
triadic
#798F2C #2C798F #8F2C79
tetradic
#798F2C #2C8F74 #422C8F #8F2C48
square
#798F2C #2C8F74 #422C8F #8F2C48
split-complementary
#798F2C #2C488F #742C8F
monochromatic
#2A310F #51601E #798F2C #A1BE3A #B8D066

Accessibility & contrast

On white

3.63
#798F2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#798F2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798F2C
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798F2C#FFFFFF#000000##000000
##798F2C1.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#98871D
Deuteranopia (green-blind)
#958634
Tritanopia (blue-blind)
#80887B
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798f2c;
/* rgb */ color: rgb(121, 143, 44);
/* oklch */ color: oklch(61.3% 0.126 121.1);
Tailwind
colors: {
  custom: {
    50: '#a2af6b',
    500: '#798f2c',
    950: '#000000',
  },
}
SCSS
$custom: #798f2c;
$custom-light: #a2af6b;
$custom-dark: #000000;
JSON
{
  "hex": "#798f2c",
  "rgb": {
    "r": 121,
    "g": 143,
    "b": 44
  },
  "hsl": {
    "h": 73.333,
    "s": 52.941,
    "l": 36.667
  },
  "oklch": {
    "l": 0.61289,
    "c": 0.126,
    "h": 121.1
  },
  "luminance": 0.23892
}

Semantic roles & 50–950 ramp

primary
#798F2C
secondary
#7461B6
accent
#4BDC6C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798F2C

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

Preview Lab → · Contrast checker → · Palette generator →

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