#798A1A#798A1A

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

Color values

HEX#798A1A
RGBrgb(121, 138, 26)
HSLhsl(69, 68%, 32%)
HSVhsv(69, 81%, 54%)
CMYKcmyk(12.3%, 0%, 81.2%, 45.9%)
CIE-LABlab(54.36, -20.68, 52.78)
CIE-LCHlch(54.36, 56.69, 111.40°)
OKLaboklab(59.95% -0.0623 0.1152)
OKLCHoklch(59.95% 0.131 118.4)
XYZxyz(17.1605, 22.3166, 4.3806)
Luminance0.2232 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798A1A #2B1A8A
analogous
#8A631A #798A1A #418A1A
triadic
#798A1A #1A798A #8A1A79
tetradic
#798A1A #1A8A63 #2B1A8A #8A1A41
square
#798A1A #1A8A63 #2B1A8A #8A1A41
split-complementary
#798A1A #1A418A #631A8A
monochromatic
#1F2307 #4C5710 #798A1A #A6BD24 #C4DC43

Accessibility & contrast

On white

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

On black

5.46
#798A1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798A1A
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798A1A#FFFFFF#000000##000000
##798A1A1.003.845.465.46
#FFFFFF3.841.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #798a1a;
/* rgb */ color: rgb(121, 138, 26);
/* oklch */ color: oklch(60.0% 0.131 118.4);
Tailwind
colors: {
  custom: {
    50: '#a3ac62',
    500: '#798a1a',
    950: '#000000',
  },
}
SCSS
$custom: #798a1a;
$custom-light: #a3ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#798a1a",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 26
  },
  "hsl": {
    "h": 69.107,
    "s": 68.293,
    "l": 32.157
  },
  "oklch": {
    "l": 0.59951,
    "c": 0.13098,
    "h": 118.4
  },
  "luminance": 0.22316
}

Semantic roles & 50–950 ramp

primary
#798A1A
secondary
#5643BD
accent
#3DEB57
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798A1A

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

Preview Lab → · Contrast checker → · Palette generator →

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