#798A18#798A18

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

Color values

HEX#798A18
RGBrgb(121, 138, 24)
HSLhsl(69, 70%, 32%)
HSVhsv(69, 83%, 54%)
CMYKcmyk(12.3%, 0%, 82.6%, 45.9%)
CIE-LABlab(54.35, -20.76, 53.36)
CIE-LCHlch(54.35, 57.26, 111.26°)
OKLaboklab(59.94% -0.0627 0.1161)
OKLCHoklch(59.94% 0.132 118.4)
XYZxyz(17.1389, 22.3080, 4.2670)
Luminance0.2231 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798A18 #29188A
analogous
#8A6218 #798A18 #408A18
triadic
#798A18 #18798A #8A1879
tetradic
#798A18 #188A62 #29188A #8A1840
square
#798A18 #188A62 #29188A #8A1840
split-complementary
#798A18 #18408A #62188A
monochromatic
#1E2206 #4B560F #798A18 #A7BE21 #C6DE3F

Accessibility & contrast

On white

3.85
#798A18 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##798A18#FFFFFF#000000##000000
##798A181.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #798a18;
/* rgb */ color: rgb(121, 138, 24);
/* oklch */ color: oklch(59.9% 0.132 118.4);
Tailwind
colors: {
  custom: {
    50: '#a3ac61',
    500: '#798a18',
    950: '#000000',
  },
}
SCSS
$custom: #798a18;
$custom-light: #a3ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#798a18",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 24
  },
  "hsl": {
    "h": 68.947,
    "s": 70.37,
    "l": 31.765
  },
  "oklch": {
    "l": 0.59941,
    "c": 0.13193,
    "h": 118.4
  },
  "luminance": 0.22308
}

Semantic roles & 50–950 ramp

primary
#798A18
secondary
#5340BD
accent
#3BED55
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #798A18

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

Preview Lab → · Contrast checker → · Palette generator →

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