#798A14#798A14

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

Color values

HEX#798A14
RGBrgb(121, 138, 20)
HSLhsl(69, 75%, 31%)
HSVhsv(69, 86%, 54%)
CMYKcmyk(12.3%, 0%, 85.5%, 45.9%)
CIE-LABlab(54.34, -20.91, 54.43)
CIE-LCHlch(54.34, 58.31, 111.01°)
OKLaboklab(59.92% -0.0633 0.1177)
OKLCHoklch(59.92% 0.134 118.3)
XYZxyz(17.1003, 22.2926, 4.0637)
Luminance0.2229 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798A14 #25148A
analogous
#8A6014 #798A14 #3E8A14
triadic
#798A14 #14798A #8A1479
tetradic
#798A14 #148A60 #25148A #8A143E
square
#798A14 #148A60 #25148A #8A143E
split-complementary
#798A14 #143E8A #60148A
monochromatic
#1B1F05 #4A550C #798A14 #A8BF1C #C9E236

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798A14#FFFFFF#000000##000000
##798A141.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)
#928221
Tritanopia (blue-blind)
#818275
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #798a14;
/* rgb */ color: rgb(121, 138, 20);
/* oklch */ color: oklch(59.9% 0.134 118.3);
Tailwind
colors: {
  custom: {
    50: '#a3ac5f',
    500: '#798a14',
    950: '#000000',
  },
}
SCSS
$custom: #798a14;
$custom-light: #a3ac5f;
$custom-dark: #000000;
JSON
{
  "hex": "#798a14",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 20
  },
  "hsl": {
    "h": 68.644,
    "s": 74.684,
    "l": 30.98
  },
  "oklch": {
    "l": 0.59922,
    "c": 0.13365,
    "h": 118.3
  },
  "luminance": 0.22292
}

Semantic roles & 50–950 ramp

primary
#798A14
secondary
#4E3CBE
accent
#36F151
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#101005
muted
#7F7F79

Preview Lab

Preview with #798A14

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

Preview Lab → · Contrast checker → · Palette generator →

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