#798A19#798A19

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

Color values

HEX#798A19
RGBrgb(121, 138, 25)
HSLhsl(69, 69%, 32%)
HSVhsv(69, 82%, 54%)
CMYKcmyk(12.3%, 0%, 81.9%, 45.9%)
CIE-LABlab(54.36, -20.73, 53.08)
CIE-LCHlch(54.36, 56.98, 111.33°)
OKLaboklab(59.95% -0.0625 0.1157)
OKLCHoklch(59.95% 0.131 118.4)
XYZxyz(17.1495, 22.3122, 4.3228)
Luminance0.2231 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798A19 #2A198A
analogous
#8A6319 #798A19 #408A19
triadic
#798A19 #19798A #8A1979
tetradic
#798A19 #198A63 #2A198A #8A1940
square
#798A19 #198A63 #2A198A #8A1940
split-complementary
#798A19 #19408A #63198A
monochromatic
#1E2206 #4C5610 #798A19 #A6BE22 #C5DD41

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798A19#FFFFFF#000000##000000
##798A191.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: #798a19;
/* rgb */ color: rgb(121, 138, 25);
/* oklch */ color: oklch(59.9% 0.131 118.4);
Tailwind
colors: {
  custom: {
    50: '#a3ac61',
    500: '#798a19',
    950: '#000000',
  },
}
SCSS
$custom: #798a19;
$custom-light: #a3ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#798a19",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 25
  },
  "hsl": {
    "h": 69.027,
    "s": 69.325,
    "l": 31.961
  },
  "oklch": {
    "l": 0.59946,
    "c": 0.13147,
    "h": 118.4
  },
  "luminance": 0.22312
}

Semantic roles & 50–950 ramp

primary
#798A19
secondary
#5442BD
accent
#3CEC56
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #798A19

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

Preview Lab → · Contrast checker → · Palette generator →

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