#798A17#798A17

#798A17 is a mid, vivid yellow. Relative luminance 0.223; OKLCH L 59.9% C 0.132 H 118.3°. Best body text is #000000 at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#798A17
RGBrgb(121, 138, 23)
HSLhsl(69, 71%, 32%)
HSVhsv(69, 83%, 54%)
CMYKcmyk(12.3%, 0%, 83.3%, 45.9%)
CIE-LABlab(54.35, -20.80, 53.64)
CIE-LCHlch(54.35, 57.53, 111.20°)
OKLaboklab(59.94% -0.0628 0.1165)
OKLCHoklch(59.94% 0.132 118.3)
XYZxyz(17.1287, 22.3039, 4.2132)
Luminance0.2230 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798A17 #28178A
analogous
#8A6217 #798A17 #3F8A17
triadic
#798A17 #17798A #8A1779
tetradic
#798A17 #178A62 #28178A #8A173F
square
#798A17 #178A62 #28178A #8A173F
split-complementary
#798A17 #173F8A #62178A
monochromatic
#1D2106 #4B560E #798A17 #A7BE20 #C7DF3D

Accessibility & contrast

On white

3.85
#798A17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.46
#798A17 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798A17
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798A17#FFFFFF#000000##000000
##798A171.003.855.465.46
#FFFFFF3.851.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#948200
Deuteranopia (green-blind)
#928223
Tritanopia (blue-blind)
#818275
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #798a17;
/* rgb */ color: rgb(121, 138, 23);
/* oklch */ color: oklch(59.9% 0.132 118.3);
Tailwind
colors: {
  custom: {
    50: '#a3ac60',
    500: '#798a17',
    950: '#000000',
  },
}
SCSS
$custom: #798a17;
$custom-light: #a3ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#798a17",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 23
  },
  "hsl": {
    "h": 68.87,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.59936,
    "c": 0.13238,
    "h": 118.3
  },
  "luminance": 0.22304
}

Semantic roles & 50–950 ramp

primary
#798A17
secondary
#523FBE
accent
#3AEE54
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #798A17

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

Preview Lab → · Contrast checker → · Palette generator →

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