#798F1B#798F1B

#798F1B is a mid, vivid yellow-green. Relative luminance 0.238; OKLCH L 61.2% C 0.136 H 120.4°. Best body text is #000000 at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#798F1B
RGBrgb(121, 143, 27)
HSLhsl(71, 68%, 33%)
HSVhsv(71, 81%, 56%)
CMYKcmyk(15.4%, 0%, 81.1%, 43.9%)
CIE-LABlab(55.88, -23.18, 53.84)
CIE-LCHlch(55.88, 58.62, 113.29°)
OKLaboklab(61.17% -0.0691 0.1177)
OKLCHoklch(61.17% 0.136 120.4)
XYZxyz(17.9058, 23.7891, 4.6851)
Luminance0.2379 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798F1B #311B8F
analogous
#8F6B1B #798F1B #3F8F1B
triadic
#798F1B #1B798F #8F1B79
tetradic
#798F1B #1B8F6B #311B8F #8F1B3F
square
#798F1B #1B8F6B #311B8F #8F1B3F
split-complementary
#798F1B #1B3F8F #6B1B8F
monochromatic
#222808 #4D5C11 #798F1B #A5C225 #C0DC48

Accessibility & contrast

On white

3.65
#798F1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.76
#798F1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798F1B
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798F1B#FFFFFF#000000##000000
##798F1B1.003.655.765.76
#FFFFFF3.651.0021.0021.00
#0000005.7621.001.001.00
##0000005.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#988600
Deuteranopia (green-blind)
#968627
Tritanopia (blue-blind)
#80877A
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #798f1b;
/* rgb */ color: rgb(121, 143, 27);
/* oklch */ color: oklch(61.2% 0.136 120.4);
Tailwind
colors: {
  custom: {
    50: '#a3af63',
    500: '#798f1b',
    950: '#000000',
  },
}
SCSS
$custom: #798f1b;
$custom-light: #a3af63;
$custom-dark: #000000;
JSON
{
  "hex": "#798f1b",
  "rgb": {
    "r": 121,
    "g": 143,
    "b": 27
  },
  "hsl": {
    "h": 71.379,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.61173,
    "c": 0.13642,
    "h": 120.4
  },
  "luminance": 0.23789
}

Semantic roles & 50–950 ramp

primary
#798F1B
secondary
#5E48BE
accent
#3DEB5E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #798F1B

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

Preview Lab → · Contrast checker → · Palette generator →

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