#798416#798416

#798416 is a mid, vivid yellow. Relative luminance 0.206; OKLCH L 58.5% C 0.126 H 115.6°. Best body text is #000000 at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#798416
RGBrgb(121, 132, 22)
HSLhsl(66, 71%, 30%)
HSVhsv(66, 83%, 52%)
CMYKcmyk(8.3%, 0%, 83.3%, 48.2%)
CIE-LABlab(52.54, -17.73, 52.34)
CIE-LCHlch(52.54, 55.26, 108.72°)
OKLaboklab(58.48% -0.0545 0.1136)
OKLCHoklch(58.48% 0.126 115.6)
XYZxyz(16.2817, 20.6257, 3.8824)
Luminance0.2062 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798416 #211684
analogous
#845816 #798416 #428416
triadic
#798416 #167984 #841679
tetradic
#798416 #168458 #211684 #841642
square
#798416 #168458 #211684 #841642
split-complementary
#798416 #164284 #581684
monochromatic
#191B05 #49500D #798416 #A9B81F #CDDE37

Accessibility & contrast

On white

4.10
#798416 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.12
#798416 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798416
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798416#FFFFFF#000000##000000
##7984161.004.105.125.12
#FFFFFF4.101.0021.0021.00
#0000005.1221.001.001.00
##0000005.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#8E7D00
Deuteranopia (green-blind)
#8D7E21
Tritanopia (blue-blind)
#817C70
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #798416;
/* rgb */ color: rgb(121, 132, 22);
/* oklch */ color: oklch(58.5% 0.126 115.6);
Tailwind
colors: {
  custom: {
    50: '#a3a75f',
    500: '#798416',
    950: '#000000',
  },
}
SCSS
$custom: #798416;
$custom-light: #a3a75f;
$custom-dark: #000000;
JSON
{
  "hex": "#798416",
  "rgb": {
    "r": 121,
    "g": 132,
    "b": 22
  },
  "hsl": {
    "h": 66,
    "s": 71.429,
    "l": 30.196
  },
  "oklch": {
    "l": 0.58478,
    "c": 0.12594,
    "h": 115.6
  },
  "luminance": 0.20625
}

Semantic roles & 50–950 ramp

primary
#798416
secondary
#4A3DB8
accent
#3AEE4C
background
#FAFAF5
surface
#F4F4EA
border
#CECEC6
text
#100F05
muted
#7F7F79

Preview Lab

Preview with #798416

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

Preview Lab → · Contrast checker → · Palette generator →

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