#798116#798116

#798116 is a mid, vivid yellow. Relative luminance 0.198; OKLCH L 57.8% C 0.123 H 114.1°. Best body text is #000000 at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#798116
RGBrgb(121, 129, 22)
HSLhsl(64, 71%, 30%)
HSVhsv(64, 83%, 51%)
CMYKcmyk(6.2%, 0%, 82.9%, 49.4%)
CIE-LABlab(51.64, -16.15, 51.55)
CIE-LCHlch(51.64, 54.02, 107.40°)
OKLaboklab(57.76% -0.0501 0.1119)
OKLCHoklch(57.76% 0.123 114.1)
XYZxyz(15.8807, 19.8237, 3.7487)
Luminance0.1982 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798116 #1E1681
analogous
#815416 #798116 #448116
triadic
#798116 #167981 #811679
tetradic
#798116 #168154 #1E1681 #811644
square
#798116 #168154 #1E1681 #811644
split-complementary
#798116 #164481 #541681
monochromatic
#191A04 #484D0D #798116 #AAB51F #D0DD35

Accessibility & contrast

On white

4.23
#798116 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.96
#798116 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798116
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798116#FFFFFF#000000##000000
##7981161.004.234.964.96
#FFFFFF4.231.0021.0021.00
#0000004.9621.001.001.00
##0000004.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#8B7C21
Tritanopia (blue-blind)
#82796E
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #798116;
/* rgb */ color: rgb(121, 129, 22);
/* oklch */ color: oklch(57.8% 0.123 114.1);
Tailwind
colors: {
  custom: {
    50: '#a3a55f',
    500: '#798116',
    950: '#000000',
  },
}
SCSS
$custom: #798116;
$custom-light: #a3a55f;
$custom-dark: #000000;
JSON
{
  "hex": "#798116",
  "rgb": {
    "r": 121,
    "g": 129,
    "b": 22
  },
  "hsl": {
    "h": 64.486,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.57756,
    "c": 0.12258,
    "h": 114.1
  },
  "luminance": 0.19823
}

Semantic roles & 50–950 ramp

primary
#798116
secondary
#463DB6
accent
#3AEE48
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #798116

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

Preview Lab → · Contrast checker → · Palette generator →

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