#798B17#798B17

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

Color values

HEX#798B17
RGBrgb(121, 139, 23)
HSLhsl(69, 72%, 32%)
HSVhsv(69, 83%, 55%)
CMYKcmyk(12.9%, 0%, 83.5%, 45.5%)
CIE-LABlab(54.65, -21.31, 53.91)
CIE-LCHlch(54.65, 57.97, 111.57°)
OKLaboklab(60.18% -0.0642 0.1171)
OKLCHoklch(60.18% 0.134 118.7)
XYZxyz(17.2728, 22.5922, 4.2612)
Luminance0.2259 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798B17 #29178B
analogous
#8B6317 #798B17 #3F8B17
triadic
#798B17 #17798B #8B1779
tetradic
#798B17 #178B63 #29178B #8B173F
square
#798B17 #178B63 #29178B #8B173F
split-complementary
#798B17 #173F8B #63178B
monochromatic
#1E2206 #4B560E #798B17 #A7C020 #C6DF3D

Accessibility & contrast

On white

3.81
#798B17 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##798B17#FFFFFF#000000##000000
##798B171.003.815.525.52
#FFFFFF3.811.0021.0021.00
#0000005.5221.001.001.00
##0000005.5221.001.001.00

Color blindness preview

Protanopia (red-blind)
#958300
Deuteranopia (green-blind)
#938323
Tritanopia (blue-blind)
#818376
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #798b17;
/* rgb */ color: rgb(121, 139, 23);
/* oklch */ color: oklch(60.2% 0.134 118.7);
Tailwind
colors: {
  custom: {
    50: '#a3ac61',
    500: '#798b17',
    950: '#000000',
  },
}
SCSS
$custom: #798b17;
$custom-light: #a3ac61;
$custom-dark: #000000;
JSON
{
  "hex": "#798b17",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 23
  },
  "hsl": {
    "h": 69.31,
    "s": 71.605,
    "l": 31.765
  },
  "oklch": {
    "l": 0.60179,
    "c": 0.13355,
    "h": 118.7
  },
  "luminance": 0.22592
}

Semantic roles & 50–950 ramp

primary
#798B17
secondary
#533FBF
accent
#39EE56
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #798B17

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

Preview Lab → · Contrast checker → · Palette generator →

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