#798916#798916

#798916 is a mid, vivid yellow. Relative luminance 0.220; OKLCH L 59.7% C 0.132 H 117.9°. Best body text is #000000 at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#798916
RGBrgb(121, 137, 22)
HSLhsl(68, 72%, 31%)
HSVhsv(68, 84%, 54%)
CMYKcmyk(11.7%, 0%, 83.9%, 46.3%)
CIE-LABlab(54.04, -20.33, 53.65)
CIE-LCHlch(54.04, 57.37, 110.75°)
OKLaboklab(59.69% -0.0616 0.1164)
OKLCHoklch(59.69% 0.132 117.9)
XYZxyz(16.9761, 22.0144, 4.1138)
Luminance0.2201 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798916 #261689
analogous
#895F16 #798916 #3F8916
triadic
#798916 #167989 #891679
tetradic
#798916 #16895F #261689 #89163F
square
#798916 #16895F #261689 #89163F
split-complementary
#798916 #163F89 #5F1689
monochromatic
#1C2005 #4A540E #798916 #A8BE1E #C8DF3A

Accessibility & contrast

On white

3.89
#798916 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.40
#798916 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798916
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798916#FFFFFF#000000##000000
##7989161.003.895.405.40
#FFFFFF3.891.0021.0021.00
#0000005.4021.001.001.00
##0000005.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#938100
Deuteranopia (green-blind)
#918222
Tritanopia (blue-blind)
#818175
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #798916;
/* rgb */ color: rgb(121, 137, 22);
/* oklch */ color: oklch(59.7% 0.132 117.9);
Tailwind
colors: {
  custom: {
    50: '#a3ab60',
    500: '#798916',
    950: '#000000',
  },
}
SCSS
$custom: #798916;
$custom-light: #a3ab60;
$custom-dark: #000000;
JSON
{
  "hex": "#798916",
  "rgb": {
    "r": 121,
    "g": 137,
    "b": 22
  },
  "hsl": {
    "h": 68.348,
    "s": 72.327,
    "l": 31.176
  },
  "oklch": {
    "l": 0.59688,
    "c": 0.13167,
    "h": 117.9
  },
  "luminance": 0.22014
}

Semantic roles & 50–950 ramp

primary
#798916
secondary
#503EBD
accent
#39EF52
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #798916

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

Preview Lab → · Contrast checker → · Palette generator →

#798916 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva