#798C16#798C16

#798C16 is a mid, vivid yellow. Relative luminance 0.229; OKLCH L 60.4% C 0.135 H 119.1°. Best body text is #000000 at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#798C16
RGBrgb(121, 140, 22)
HSLhsl(70, 73%, 32%)
HSVhsv(70, 84%, 55%)
CMYKcmyk(13.6%, 0%, 84.3%, 45.1%)
CIE-LABlab(54.95, -21.86, 54.44)
CIE-LCHlch(54.95, 58.66, 111.88°)
OKLaboklab(60.42% -0.0658 0.1181)
OKLCHoklch(60.42% 0.135 119.1)
XYZxyz(17.4085, 22.8792, 4.2579)
Luminance0.2288 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798C16 #29168C
analogous
#8C6416 #798C16 #3E8C16
triadic
#798C16 #16798C #8C1679
tetradic
#798C16 #168C64 #29168C #8C163E
square
#798C16 #168C64 #29168C #8C163E
split-complementary
#798C16 #163E8C #64168C
monochromatic
#1E2205 #4B570E #798C16 #A7C11E #C6E03C

Accessibility & contrast

On white

3.77
#798C16 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.58
#798C16 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798C16
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798C16#FFFFFF#000000##000000
##798C161.003.775.585.58
#FFFFFF3.771.0021.0021.00
#0000005.5821.001.001.00
##0000005.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#968400
Deuteranopia (green-blind)
#948423
Tritanopia (blue-blind)
#818477
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #798c16;
/* rgb */ color: rgb(121, 140, 22);
/* oklch */ color: oklch(60.4% 0.135 119.1);
Tailwind
colors: {
  custom: {
    50: '#a3ad60',
    500: '#798c16',
    950: '#000000',
  },
}
SCSS
$custom: #798c16;
$custom-light: #a3ad60;
$custom-dark: #000000;
JSON
{
  "hex": "#798c16",
  "rgb": {
    "r": 121,
    "g": 140,
    "b": 22
  },
  "hsl": {
    "h": 69.661,
    "s": 72.84,
    "l": 31.765
  },
  "oklch": {
    "l": 0.60418,
    "c": 0.13514,
    "h": 119.1
  },
  "luminance": 0.22879
}

Semantic roles & 50–950 ramp

primary
#798C16
secondary
#533EC0
accent
#38F056
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #798C16

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

Preview Lab → · Contrast checker → · Palette generator →

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