#798716#798716

#798716 is a mid, vivid yellow. Relative luminance 0.215; OKLCH L 59.2% C 0.129 H 117.0°. Best body text is #000000 at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#798716
RGBrgb(121, 135, 22)
HSLhsl(67, 72%, 31%)
HSVhsv(67, 84%, 53%)
CMYKcmyk(10.4%, 0%, 83.7%, 47.1%)
CIE-LABlab(53.44, -19.29, 53.13)
CIE-LCHlch(53.44, 56.52, 109.96°)
OKLaboklab(59.2% -0.0588 0.1152)
OKLCHoklch(59.2% 0.129 117)
XYZxyz(16.6944, 21.4510, 4.0199)
Luminance0.2145 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798716 #241687
analogous
#875C16 #798716 #408716
triadic
#798716 #167987 #871679
tetradic
#798716 #16875C #241687 #871640
square
#798716 #16875C #241687 #871640
split-complementary
#798716 #164087 #5C1687
monochromatic
#1B1E05 #4A520D #798716 #A8BC1F #CADF39

Accessibility & contrast

On white

3.97
#798716 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.29
#798716 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798716
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798716#FFFFFF#000000##000000
##7987161.003.975.295.29
#FFFFFF3.971.0021.0021.00
#0000005.2921.001.001.00
##0000005.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#917F00
Deuteranopia (green-blind)
#908022
Tritanopia (blue-blind)
#817F73
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #798716;
/* rgb */ color: rgb(121, 135, 22);
/* oklch */ color: oklch(59.2% 0.129 117.0);
Tailwind
colors: {
  custom: {
    50: '#a3a960',
    500: '#798716',
    950: '#000000',
  },
}
SCSS
$custom: #798716;
$custom-light: #a3a960;
$custom-dark: #000000;
JSON
{
  "hex": "#798716",
  "rgb": {
    "r": 121,
    "g": 135,
    "b": 22
  },
  "hsl": {
    "h": 67.434,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.59203,
    "c": 0.12936,
    "h": 117
  },
  "luminance": 0.21451
}

Semantic roles & 50–950 ramp

primary
#798716
secondary
#4D3EBB
accent
#39EF50
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #798716

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

Preview Lab → · Contrast checker → · Palette generator →

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