#798A20#798A20

#798A20 is a mid, vivid yellow. Relative luminance 0.223; OKLCH L 60.0% C 0.128 H 118.5°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#798A20
RGBrgb(121, 138, 32)
HSLhsl(70, 62%, 33%)
HSVhsv(70, 77%, 54%)
CMYKcmyk(12.3%, 0%, 76.8%, 45.9%)
CIE-LABlab(54.39, -20.41, 50.85)
CIE-LCHlch(54.39, 54.80, 111.87°)
OKLaboklab(59.99% -0.061 0.1122)
OKLCHoklch(59.99% 0.128 118.5)
XYZxyz(17.2347, 22.3463, 4.7716)
Luminance0.2235 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798A20 #31208A
analogous
#8A6620 #798A20 #448A20
triadic
#798A20 #20798A #8A2079
tetradic
#798A20 #208A66 #31208A #8A2044
square
#798A20 #208A66 #31208A #8A2044
split-complementary
#798A20 #20448A #66208A
monochromatic
#222709 #4D5814 #798A20 #A5BC2C #C0D64E

Accessibility & contrast

On white

3.84
#798A20 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#798A20 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798A20
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798A20#FFFFFF#000000##000000
##798A201.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#938207
Deuteranopia (green-blind)
#928329
Tritanopia (blue-blind)
#818276
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #798a20;
/* rgb */ color: rgb(121, 138, 32);
/* oklch */ color: oklch(60.0% 0.128 118.5);
Tailwind
colors: {
  custom: {
    50: '#a3ac64',
    500: '#798a20',
    950: '#000000',
  },
}
SCSS
$custom: #798a20;
$custom-light: #a3ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#798a20",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 32
  },
  "hsl": {
    "h": 69.623,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.59986,
    "c": 0.12775,
    "h": 118.5
  },
  "luminance": 0.22346
}

Semantic roles & 50–950 ramp

primary
#798A20
secondary
#5E4DB9
accent
#42E55D
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798A20

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

Preview Lab → · Contrast checker → · Palette generator →

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