#798822#798822

#798822 is a mid, vivid yellow. Relative luminance 0.218; OKLCH L 59.5% C 0.124 H 117.7°. Best body text is #000000 at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#798822
RGBrgb(121, 136, 34)
HSLhsl(69, 60%, 33%)
HSVhsv(69, 75%, 53%)
CMYKcmyk(11%, 0%, 75%, 46.7%)
CIE-LABlab(53.80, -19.28, 49.58)
CIE-LCHlch(53.80, 53.19, 111.25°)
OKLaboklab(59.51% -0.0577 0.1099)
OKLCHoklch(59.51% 0.124 117.7)
XYZxyz(16.9784, 21.7889, 4.8243)
Luminance0.2179 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798822 #312288
analogous
#886422 #798822 #468822
triadic
#798822 #227988 #882279
tetradic
#798822 #228864 #312288 #882246
square
#798822 #228864 #312288 #882246
split-complementary
#798822 #224688 #642288
monochromatic
#22260A #4D5716 #798822 #A5B92E #C0D351

Accessibility & contrast

On white

3.92
#798822 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.36
#798822 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798822
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798822#FFFFFF#000000##000000
##7988221.003.925.365.36
#FFFFFF3.921.0021.0021.00
#0000005.3621.001.001.00
##0000005.3621.001.001.00

Color blindness preview

Protanopia (red-blind)
#91800E
Deuteranopia (green-blind)
#90812B
Tritanopia (blue-blind)
#818074
Achromatopsia (no color)
#818181

Design tokens & code

CSS
--color: #798822;
/* rgb */ color: rgb(121, 136, 34);
/* oklch */ color: oklch(59.5% 0.124 117.7);
Tailwind
colors: {
  custom: {
    50: '#a3aa65',
    500: '#798822',
    950: '#000000',
  },
}
SCSS
$custom: #798822;
$custom-light: #a3aa65;
$custom-dark: #000000;
JSON
{
  "hex": "#798822",
  "rgb": {
    "r": 121,
    "g": 136,
    "b": 34
  },
  "hsl": {
    "h": 68.824,
    "s": 60,
    "l": 33.333
  },
  "oklch": {
    "l": 0.59515,
    "c": 0.12414,
    "h": 117.7
  },
  "luminance": 0.21789
}

Semantic roles & 50–950 ramp

primary
#798822
secondary
#5E4FB7
accent
#45E35C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798822

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

Preview Lab → · Contrast checker → · Palette generator →

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