#798516#798516

#798516 is a mid, vivid yellow. Relative luminance 0.209; OKLCH L 58.7% C 0.127 H 116.1°. Best body text is #000000 at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#798516
RGBrgb(121, 133, 22)
HSLhsl(66, 72%, 30%)
HSVhsv(66, 83%, 52%)
CMYKcmyk(9%, 0%, 83.5%, 47.8%)
CIE-LABlab(52.84, -18.25, 52.60)
CIE-LCHlch(52.84, 55.68, 109.14°)
OKLaboklab(58.72% -0.0559 0.1141)
OKLCHoklch(58.72% 0.127 116.1)
XYZxyz(16.4180, 20.8982, 3.9278)
Luminance0.2090 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798516 #221685
analogous
#855916 #798516 #428516
triadic
#798516 #167985 #851679
tetradic
#798516 #168559 #221685 #851642
square
#798516 #168559 #221685 #851642
split-complementary
#798516 #164285 #591685
monochromatic
#191C05 #49500D #798516 #A9BA1F #CCDE37

Accessibility & contrast

On white

4.05
#798516 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.18
#798516 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798516
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798516#FFFFFF#000000##000000
##7985161.004.055.185.18
#FFFFFF4.051.0021.0021.00
#0000005.1821.001.001.00
##0000005.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8F7E00
Deuteranopia (green-blind)
#8E7F21
Tritanopia (blue-blind)
#817D71
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #798516;
/* rgb */ color: rgb(121, 133, 22);
/* oklch */ color: oklch(58.7% 0.127 116.1);
Tailwind
colors: {
  custom: {
    50: '#a3a85f',
    500: '#798516',
    950: '#000000',
  },
}
SCSS
$custom: #798516;
$custom-light: #a3a85f;
$custom-dark: #000000;
JSON
{
  "hex": "#798516",
  "rgb": {
    "r": 121,
    "g": 133,
    "b": 22
  },
  "hsl": {
    "h": 66.486,
    "s": 71.613,
    "l": 30.392
  },
  "oklch": {
    "l": 0.5872,
    "c": 0.12708,
    "h": 116.1
  },
  "luminance": 0.20898
}

Semantic roles & 50–950 ramp

primary
#798516
secondary
#4B3EB9
accent
#39EE4D
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #798516

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

Preview Lab → · Contrast checker → · Palette generator →

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