#798816#798816

#798816 is a mid, vivid yellow. Relative luminance 0.217; OKLCH L 59.4% C 0.131 H 117.5°. Best body text is #000000 at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#798816
RGBrgb(121, 136, 22)
HSLhsl(68, 72%, 31%)
HSVhsv(68, 84%, 53%)
CMYKcmyk(11%, 0%, 83.8%, 46.7%)
CIE-LABlab(53.74, -19.81, 53.39)
CIE-LCHlch(53.74, 56.95, 110.36°)
OKLaboklab(59.45% -0.0602 0.1158)
OKLCHoklch(59.45% 0.131 117.5)
XYZxyz(16.8346, 21.7314, 4.0666)
Luminance0.2173 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798816 #251688
analogous
#885E16 #798816 #408816
triadic
#798816 #167988 #881679
tetradic
#798816 #16885E #251688 #881640
square
#798816 #16885E #251688 #881640
split-complementary
#798816 #164088 #5E1688
monochromatic
#1B1F05 #4A530D #798816 #A8BD1F #C9DF39

Accessibility & contrast

On white

3.93
#798816 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.35
#798816 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798816
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798816#FFFFFF#000000##000000
##7988161.003.935.355.35
#FFFFFF3.931.0021.0021.00
#0000005.3521.001.001.00
##0000005.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#928000
Deuteranopia (green-blind)
#908122
Tritanopia (blue-blind)
#818074
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #798816;
/* rgb */ color: rgb(121, 136, 22);
/* oklch */ color: oklch(59.4% 0.131 117.5);
Tailwind
colors: {
  custom: {
    50: '#a3aa60',
    500: '#798816',
    950: '#000000',
  },
}
SCSS
$custom: #798816;
$custom-light: #a3aa60;
$custom-dark: #000000;
JSON
{
  "hex": "#798816",
  "rgb": {
    "r": 121,
    "g": 136,
    "b": 22
  },
  "hsl": {
    "h": 67.895,
    "s": 72.152,
    "l": 30.98
  },
  "oklch": {
    "l": 0.59446,
    "c": 0.13051,
    "h": 117.5
  },
  "luminance": 0.21731
}

Semantic roles & 50–950 ramp

primary
#798816
secondary
#4E3EBC
accent
#39EF51
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #798816

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

Preview Lab → · Contrast checker → · Palette generator →

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