#798122#798122

#798122 is a mid, moderate yellow. Relative luminance 0.199; OKLCH L 57.8% C 0.116 H 114.2°. Best body text is #000000 at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#798122
RGBrgb(121, 129, 34)
HSLhsl(65, 58%, 32%)
HSVhsv(65, 74%, 51%)
CMYKcmyk(6.2%, 0%, 73.6%, 49.4%)
CIE-LABlab(51.70, -15.60, 47.55)
CIE-LCHlch(51.70, 50.04, 108.17°)
OKLaboklab(57.83% -0.0475 0.1056)
OKLCHoklch(57.83% 0.116 114.2)
XYZxyz(16.0246, 19.8813, 4.5064)
Luminance0.1988 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798122 #2A2281
analogous
#815A22 #798122 #498122
triadic
#798122 #227981 #812279
tetradic
#798122 #22815A #2A2281 #812249
square
#798122 #22815A #2A2281 #812249
split-complementary
#798122 #224981 #5A2281
monochromatic
#1E2008 #4C5115 #798122 #A6B12F #C5D04D

Accessibility & contrast

On white

4.22
#798122 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.98
#798122 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798122
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798122#FFFFFF#000000##000000
##7981221.004.224.984.98
#FFFFFF4.221.0021.0021.00
#0000004.9821.001.001.00
##0000004.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A11
Deuteranopia (green-blind)
#8A7C2A
Tritanopia (blue-blind)
#81796F
Achromatopsia (no color)
#7B7B7B

Design tokens & code

CSS
--color: #798122;
/* rgb */ color: rgb(121, 129, 34);
/* oklch */ color: oklch(57.8% 0.116 114.2);
Tailwind
colors: {
  custom: {
    50: '#a3a564',
    500: '#798122',
    950: '#000000',
  },
}
SCSS
$custom: #798122;
$custom-light: #a3a564;
$custom-dark: #000000;
JSON
{
  "hex": "#798122",
  "rgb": {
    "r": 121,
    "g": 129,
    "b": 34
  },
  "hsl": {
    "h": 65.053,
    "s": 58.282,
    "l": 31.961
  },
  "oklch": {
    "l": 0.57829,
    "c": 0.11582,
    "h": 114.2
  },
  "luminance": 0.19881
}

Semantic roles & 50–950 ramp

primary
#798122
secondary
#544BB3
accent
#46E153
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F0F06
muted
#7F7F7A

Preview Lab

Preview with #798122

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

Preview Lab → · Contrast checker → · Palette generator →

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