#798D1B#798D1B

#798D1B is a mid, vivid yellow-green. Relative luminance 0.232; OKLCH L 60.7% C 0.134 H 119.6°. Best body text is #000000 at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#798D1B
RGBrgb(121, 141, 27)
HSLhsl(71, 68%, 33%)
HSVhsv(71, 81%, 55%)
CMYKcmyk(14.2%, 0%, 80.9%, 44.7%)
CIE-LABlab(55.27, -22.17, 53.30)
CIE-LCHlch(55.27, 57.72, 112.59°)
OKLaboklab(60.69% -0.0663 0.1165)
OKLCHoklch(60.69% 0.134 119.6)
XYZxyz(17.6082, 23.1939, 4.5860)
Luminance0.2319 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798D1B #2F1B8D
analogous
#8D681B #798D1B #408D1B
triadic
#798D1B #1B798D #8D1B79
tetradic
#798D1B #1B8D68 #2F1B8D #8D1B40
square
#798D1B #1B8D68 #2F1B8D #8D1B40
split-complementary
#798D1B #1B408D #681B8D
monochromatic
#212607 #4D5A11 #798D1B #A5C025 #C2DC47

Accessibility & contrast

On white

3.72
#798D1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.64
#798D1B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798D1B
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798D1B#FFFFFF#000000##000000
##798D1B1.003.725.645.64
#FFFFFF3.721.0021.0021.00
#0000005.6421.001.001.00
##0000005.6421.001.001.00

Color blindness preview

Protanopia (red-blind)
#978400
Deuteranopia (green-blind)
#948526
Tritanopia (blue-blind)
#808578
Achromatopsia (no color)
#848484

Design tokens & code

CSS
--color: #798d1b;
/* rgb */ color: rgb(121, 141, 27);
/* oklch */ color: oklch(60.7% 0.134 119.6);
Tailwind
colors: {
  custom: {
    50: '#a3ae63',
    500: '#798d1b',
    950: '#000000',
  },
}
SCSS
$custom: #798d1b;
$custom-light: #a3ae63;
$custom-dark: #000000;
JSON
{
  "hex": "#798d1b",
  "rgb": {
    "r": 121,
    "g": 141,
    "b": 27
  },
  "hsl": {
    "h": 70.526,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.60685,
    "c": 0.13404,
    "h": 119.6
  },
  "luminance": 0.23194
}

Semantic roles & 50–950 ramp

primary
#798D1B
secondary
#5B46BD
accent
#3DEB5C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #798D1B

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

Preview Lab → · Contrast checker → · Palette generator →

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