#798722#798722

#798722 is a mid, vivid yellow. Relative luminance 0.215; OKLCH L 59.3% C 0.123 H 117.3°. Best body text is #000000 at 5.30:1 contrast (WCAG AA passes).

Color values

HEX#798722
RGBrgb(121, 135, 34)
HSLhsl(68, 60%, 33%)
HSVhsv(68, 75%, 53%)
CMYKcmyk(10.4%, 0%, 74.8%, 47.1%)
CIE-LABlab(53.50, -18.76, 49.29)
CIE-LCHlch(53.50, 52.74, 110.84°)
OKLaboklab(59.27% -0.0563 0.1093)
OKLCHoklch(59.27% 0.123 117.3)
XYZxyz(16.8383, 21.5086, 4.7776)
Luminance0.2151 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798722 #302287
analogous
#876222 #798722 #468722
triadic
#798722 #227987 #872279
tetradic
#798722 #228762 #302287 #872246
square
#798722 #228762 #302287 #872246
split-complementary
#798722 #224687 #622287
monochromatic
#212509 #4D5616 #798722 #A5B82E #C1D350

Accessibility & contrast

On white

3.96
#798722 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.30
#798722 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798722
5.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798722#FFFFFF#000000##000000
##7987221.003.965.305.30
#FFFFFF3.961.0021.0021.00
#0000005.3021.001.001.00
##0000005.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#907F0E
Deuteranopia (green-blind)
#8F802A
Tritanopia (blue-blind)
#817F74
Achromatopsia (no color)
#808080

Design tokens & code

CSS
--color: #798722;
/* rgb */ color: rgb(121, 135, 34);
/* oklch */ color: oklch(59.3% 0.123 117.3);
Tailwind
colors: {
  custom: {
    50: '#a3a965',
    500: '#798722',
    950: '#000000',
  },
}
SCSS
$custom: #798722;
$custom-light: #a3a965;
$custom-dark: #000000;
JSON
{
  "hex": "#798722",
  "rgb": {
    "r": 121,
    "g": 135,
    "b": 34
  },
  "hsl": {
    "h": 68.317,
    "s": 59.763,
    "l": 33.137
  },
  "oklch": {
    "l": 0.59273,
    "c": 0.12293,
    "h": 117.3
  },
  "luminance": 0.21508
}

Semantic roles & 50–950 ramp

primary
#798722
secondary
#5D4EB7
accent
#45E35B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798722

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

Preview Lab → · Contrast checker → · Palette generator →

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