#798E2C#798E2C

#798E2C is a mid, vivid yellow-green. Relative luminance 0.236; OKLCH L 61.0% C 0.125 H 120.7°. Best body text is #000000 at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#798E2C
RGBrgb(121, 142, 44)
HSLhsl(73, 53%, 36%)
HSVhsv(73, 69%, 56%)
CMYKcmyk(14.8%, 0%, 69%, 44.3%)
CIE-LABlab(55.68, -21.75, 47.53)
CIE-LCHlch(55.68, 52.27, 114.59°)
OKLaboklab(61.05% -0.0636 0.1073)
OKLCHoklch(61.05% 0.125 120.7)
XYZxyz(18.0131, 23.5928, 5.9873)
Luminance0.2359 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798E2C #412C8E
analogous
#8E722C #798E2C #488E2C
triadic
#798E2C #2C798E #8E2C79
tetradic
#798E2C #2C8E72 #412C8E #8E2C48
square
#798E2C #2C8E72 #412C8E #8E2C48
split-complementary
#798E2C #2C488E #722C8E
monochromatic
#29310F #515F1E #798E2C #A1BD3A #B9CF65

Accessibility & contrast

On white

3.67
#798E2C on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.72
#798E2C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798E2C
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798E2C#FFFFFF#000000##000000
##798E2C1.003.675.725.72
#FFFFFF3.671.0021.0021.00
#0000005.7221.001.001.00
##0000005.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#97861E
Deuteranopia (green-blind)
#948634
Tritanopia (blue-blind)
#80877A
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #798e2c;
/* rgb */ color: rgb(121, 142, 44);
/* oklch */ color: oklch(61.0% 0.125 120.7);
Tailwind
colors: {
  custom: {
    50: '#a2af6b',
    500: '#798e2c',
    950: '#000000',
  },
}
SCSS
$custom: #798e2c;
$custom-light: #a2af6b;
$custom-dark: #000000;
JSON
{
  "hex": "#798e2c",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 44
  },
  "hsl": {
    "h": 72.857,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.61046,
    "c": 0.12472,
    "h": 120.7
  },
  "luminance": 0.23593
}

Semantic roles & 50–950 ramp

primary
#798E2C
secondary
#7260B6
accent
#4CDC6B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #798E2C

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

Preview Lab → · Contrast checker → · Palette generator →

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