#798B18#798B18

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

Color values

HEX#798B18
RGBrgb(121, 139, 24)
HSLhsl(69, 71%, 32%)
HSVhsv(69, 83%, 55%)
CMYKcmyk(12.9%, 0%, 82.7%, 45.5%)
CIE-LABlab(54.65, -21.28, 53.63)
CIE-LCHlch(54.65, 57.70, 111.64°)
OKLaboklab(60.18% -0.0641 0.1167)
OKLCHoklch(60.18% 0.133 118.8)
XYZxyz(17.2831, 22.5963, 4.3150)
Luminance0.2260 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798B18 #2A188B
analogous
#8B6418 #798B18 #408B18
triadic
#798B18 #18798B #8B1879
tetradic
#798B18 #188B64 #2A188B #8B1840
square
#798B18 #188B64 #2A188B #8B1840
split-complementary
#798B18 #18408B #64188B
monochromatic
#1E2306 #4C570F #798B18 #A6BF21 #C5DE3F

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798B18#FFFFFF#000000##000000
##798B181.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)
#938324
Tritanopia (blue-blind)
#818376
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #798b18;
/* rgb */ color: rgb(121, 139, 24);
/* oklch */ color: oklch(60.2% 0.133 118.8);
Tailwind
colors: {
  custom: {
    50: '#a3ac61',
    500: '#798b18',
    950: '#000000',
  },
}
SCSS
$custom: #798b18;
$custom-light: #a3ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#798b18",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 24
  },
  "hsl": {
    "h": 69.391,
    "s": 70.552,
    "l": 31.961
  },
  "oklch": {
    "l": 0.60184,
    "c": 0.1331,
    "h": 118.8
  },
  "luminance": 0.22596
}

Semantic roles & 50–950 ramp

primary
#798B18
secondary
#5440BE
accent
#3AED56
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #798B18

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

Preview Lab → · Contrast checker → · Palette generator →

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