#798016#798016

#798016 is a mid, vivid yellow. Relative luminance 0.196; OKLCH L 57.5% C 0.121 H 113.6°. Best body text is #000000 at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#798016
RGBrgb(121, 128, 22)
HSLhsl(64, 71%, 29%)
HSVhsv(64, 83%, 50%)
CMYKcmyk(5.5%, 0%, 82.8%, 49.8%)
CIE-LABlab(51.34, -15.62, 51.29)
CIE-LCHlch(51.34, 53.62, 106.94°)
OKLaboklab(57.52% -0.0486 0.1113)
OKLCHoklch(57.52% 0.121 113.6)
XYZxyz(15.7497, 19.5616, 3.7050)
Luminance0.1956 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798016 #1D1680
analogous
#805216 #798016 #448016
triadic
#798016 #167980 #801679
tetradic
#798016 #168052 #1D1680 #801644
square
#798016 #168052 #1D1680 #801644
split-complementary
#798016 #164480 #521680
monochromatic
#191A04 #484C0D #798016 #AAB41F #D1DC34

Accessibility & contrast

On white

4.28
#798016 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.91
#798016 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798016
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798016#FFFFFF#000000##000000
##7980161.004.284.914.91
#FFFFFF4.281.0021.0021.00
#0000004.9121.001.001.00
##0000004.9121.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7900
Deuteranopia (green-blind)
#8A7B20
Tritanopia (blue-blind)
#82786D
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #798016;
/* rgb */ color: rgb(121, 128, 22);
/* oklch */ color: oklch(57.5% 0.121 113.6);
Tailwind
colors: {
  custom: {
    50: '#a3a45f',
    500: '#798016',
    950: '#000000',
  },
}
SCSS
$custom: #798016;
$custom-light: #a3a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#798016",
  "rgb": {
    "r": 121,
    "g": 128,
    "b": 22
  },
  "hsl": {
    "h": 63.962,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.57516,
    "c": 0.12147,
    "h": 113.6
  },
  "luminance": 0.19561
}

Semantic roles & 50–950 ramp

primary
#798016
secondary
#453DB5
accent
#3AED46
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #798016

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

Preview Lab → · Contrast checker → · Palette generator →

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