#798B19#798B19

#798B19 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#798B19
RGBrgb(121, 139, 25)
HSLhsl(69, 70%, 32%)
HSVhsv(69, 82%, 55%)
CMYKcmyk(12.9%, 0%, 82%, 45.5%)
CIE-LABlab(54.66, -21.24, 53.34)
CIE-LCHlch(54.66, 57.42, 111.71°)
OKLaboklab(60.19% -0.0639 0.1162)
OKLCHoklch(60.19% 0.133 118.8)
XYZxyz(17.2936, 22.6005, 4.3708)
Luminance0.2260 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798B19 #2B198B
analogous
#8B6419 #798B19 #408B19
triadic
#798B19 #19798B #8B1979
tetradic
#798B19 #198B64 #2B198B #8B1940
square
#798B19 #198B64 #2B198B #8B1940
split-complementary
#798B19 #19408B #64198B
monochromatic
#1F2306 #4C5710 #798B19 #A6BF22 #C4DD41

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798B19#FFFFFF#000000##000000
##798B191.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: #798b19;
/* rgb */ color: rgb(121, 139, 25);
/* oklch */ color: oklch(60.2% 0.133 118.8);
Tailwind
colors: {
  custom: {
    50: '#a3ac61',
    500: '#798b19',
    950: '#000000',
  },
}
SCSS
$custom: #798b19;
$custom-light: #a3ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#798b19",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 25
  },
  "hsl": {
    "h": 69.474,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.60189,
    "c": 0.13264,
    "h": 118.8
  },
  "luminance": 0.226
}

Semantic roles & 50–950 ramp

primary
#798B19
secondary
#5642BE
accent
#3BEC57
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #798B19

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

Preview Lab → · Contrast checker → · Palette generator →

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