#798A1D#798A1D

#798A1D is a mid, vivid yellow. Relative luminance 0.223; OKLCH L 60.0% C 0.129 H 118.5°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#798A1D
RGBrgb(121, 138, 29)
HSLhsl(69, 65%, 33%)
HSVhsv(69, 79%, 54%)
CMYKcmyk(12.3%, 0%, 79%, 45.9%)
CIE-LABlab(54.38, -20.56, 51.85)
CIE-LCHlch(54.38, 55.78, 111.63°)
OKLaboklab(59.97% -0.0617 0.1138)
OKLCHoklch(59.97% 0.129 118.5)
XYZxyz(17.1958, 22.3308, 4.5665)
Luminance0.2233 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798A1D #2E1D8A
analogous
#8A641D #798A1D #428A1D
triadic
#798A1D #1D798A #8A1D79
tetradic
#798A1D #1D8A64 #2E1D8A #8A1D42
square
#798A1D #1D8A64 #2E1D8A #8A1D42
split-complementary
#798A1D #1D428A #641D8A
monochromatic
#202508 #4D5712 #798A1D #A5BD28 #C2D949

Accessibility & contrast

On white

3.84
#798A1D on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#798A1D on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798A1D
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798A1D#FFFFFF#000000##000000
##798A1D1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#928227
Tritanopia (blue-blind)
#818276
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #798a1d;
/* rgb */ color: rgb(121, 138, 29);
/* oklch */ color: oklch(60.0% 0.129 118.5);
Tailwind
colors: {
  custom: {
    50: '#a3ac63',
    500: '#798a1d',
    950: '#000000',
  },
}
SCSS
$custom: #798a1d;
$custom-light: #a3ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#798a1d",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 29
  },
  "hsl": {
    "h": 69.358,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.59967,
    "c": 0.12944,
    "h": 118.5
  },
  "luminance": 0.22331
}

Semantic roles & 50–950 ramp

primary
#798A1D
secondary
#5A48BB
accent
#40E85A
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798A1D

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

Preview Lab → · Contrast checker → · Palette generator →

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