#798B1A#798B1A

#798B1A is a mid, vivid yellow. Relative luminance 0.226; OKLCH L 60.2% C 0.132 H 118.8°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#798B1A
RGBrgb(121, 139, 26)
HSLhsl(70, 68%, 32%)
HSVhsv(70, 81%, 55%)
CMYKcmyk(12.9%, 0%, 81.3%, 45.5%)
CIE-LABlab(54.66, -21.20, 53.05)
CIE-LCHlch(54.66, 57.13, 111.78°)
OKLaboklab(60.19% -0.0637 0.1158)
OKLCHoklch(60.19% 0.132 118.8)
XYZxyz(17.3046, 22.6049, 4.4286)
Luminance0.2261 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798B1A #2C1A8B
analogous
#8B651A #798B1A #408B1A
triadic
#798B1A #1A798B #8B1A79
tetradic
#798B1A #1A8B65 #2C1A8B #8B1A40
square
#798B1A #1A8B65 #2C1A8B #8B1A40
split-complementary
#798B1A #1A408B #651A8B
monochromatic
#1F2407 #4C5710 #798B1A #A6BF24 #C4DC43

Accessibility & contrast

On white

3.80
#798B1A on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#798B1A on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798B1A
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798B1A#FFFFFF#000000##000000
##798B1A1.003.805.525.52
#FFFFFF3.801.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#938325
Tritanopia (blue-blind)
#818376
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #798b1a;
/* rgb */ color: rgb(121, 139, 26);
/* oklch */ color: oklch(60.2% 0.132 118.8);
Tailwind
colors: {
  custom: {
    50: '#a3ac62',
    500: '#798b1a',
    950: '#000000',
  },
}
SCSS
$custom: #798b1a;
$custom-light: #a3ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#798b1a",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 26
  },
  "hsl": {
    "h": 69.558,
    "s": 68.485,
    "l": 32.353
  },
  "oklch": {
    "l": 0.60194,
    "c": 0.13216,
    "h": 118.8
  },
  "luminance": 0.22605
}

Semantic roles & 50–950 ramp

primary
#798B1A
secondary
#5744BD
accent
#3CEB58
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101006
muted
#7F7F7A

Preview Lab

Preview with #798B1A

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

Preview Lab → · Contrast checker → · Palette generator →

#798B1A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva