#798E1D#798E1D

#798E1D is a mid, vivid yellow-green. Relative luminance 0.235; OKLCH L 60.9% C 0.134 H 120.1°. Best body text is #000000 at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#798E1D
RGBrgb(121, 142, 29)
HSLhsl(71, 66%, 34%)
HSVhsv(71, 80%, 56%)
CMYKcmyk(14.8%, 0%, 79.6%, 44.3%)
CIE-LABlab(55.58, -22.59, 52.96)
CIE-LCHlch(55.58, 57.57, 113.10°)
OKLaboklab(60.94% -0.0673 0.1161)
OKLCHoklch(60.94% 0.134 120.1)
XYZxyz(17.7803, 23.4997, 4.7614)
Luminance0.2350 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798E1D #321D8E
analogous
#8E6A1D #798E1D #418E1D
triadic
#798E1D #1D798E #8E1D79
tetradic
#798E1D #1D8E6A #321D8E #8E1D41
square
#798E1D #1D8E6A #321D8E #8E1D41
split-complementary
#798E1D #1D418E #6A1D8E
monochromatic
#222808 #4E5B13 #798E1D #A4C127 #C0DA4B

Accessibility & contrast

On white

3.68
#798E1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.70
#798E1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798E1D
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798E1D#FFFFFF#000000##000000
##798E1D1.003.685.705.70
#FFFFFF3.681.0021.0021.00
#0000005.7021.001.001.00
##0000005.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#978500
Deuteranopia (green-blind)
#958528
Tritanopia (blue-blind)
#808679
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #798e1d;
/* rgb */ color: rgb(121, 142, 29);
/* oklch */ color: oklch(60.9% 0.134 120.1);
Tailwind
colors: {
  custom: {
    50: '#a3af64',
    500: '#798e1d',
    950: '#000000',
  },
}
SCSS
$custom: #798e1d;
$custom-light: #a3af64;
$custom-dark: #000000;
JSON
{
  "hex": "#798e1d",
  "rgb": {
    "r": 121,
    "g": 142,
    "b": 29
  },
  "hsl": {
    "h": 71.15,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.6094,
    "c": 0.13422,
    "h": 120.1
  },
  "luminance": 0.235
}

Semantic roles & 50–950 ramp

primary
#798E1D
secondary
#5F4ABD
accent
#3FE95E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798E1D

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

Preview Lab → · Contrast checker → · Palette generator →

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