#798A22#798A22

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

Color values

HEX#798A22
RGBrgb(121, 138, 34)
HSLhsl(70, 60%, 34%)
HSVhsv(70, 75%, 54%)
CMYKcmyk(12.3%, 0%, 75.4%, 45.9%)
CIE-LABlab(54.40, -20.31, 50.16)
CIE-LCHlch(54.40, 54.11, 112.05°)
OKLaboklab(60% -0.0606 0.1111)
OKLCHoklch(60% 0.127 118.6)
XYZxyz(17.2627, 22.3575, 4.9191)
Luminance0.2236 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798A22 #33228A
analogous
#8A6722 #798A22 #458A22
triadic
#798A22 #22798A #8A2279
tetradic
#798A22 #228A67 #33228A #8A2245
square
#798A22 #228A67 #33228A #8A2245
split-complementary
#798A22 #22458A #67228A
monochromatic
#23280A #4E5916 #798A22 #A4BB2E #BFD452

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798A22#FFFFFF#000000##000000
##798A221.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)
#93820D
Deuteranopia (green-blind)
#92832B
Tritanopia (blue-blind)
#818276
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #798a22;
/* rgb */ color: rgb(121, 138, 34);
/* oklch */ color: oklch(60.0% 0.127 118.6);
Tailwind
colors: {
  custom: {
    50: '#a3ac65',
    500: '#798a22',
    950: '#000000',
  },
}
SCSS
$custom: #798a22;
$custom-light: #a3ac65;
$custom-dark: #000000;
JSON
{
  "hex": "#798a22",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 34
  },
  "hsl": {
    "h": 69.808,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.59999,
    "c": 0.12656,
    "h": 118.6
  },
  "luminance": 0.22357
}

Semantic roles & 50–950 ramp

primary
#798A22
secondary
#6150B8
accent
#44E45E
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798A22

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

Preview Lab → · Contrast checker → · Palette generator →

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