#798B14#798B14

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

Color values

HEX#798B14
RGBrgb(121, 139, 20)
HSLhsl(69, 75%, 31%)
HSVhsv(69, 86%, 55%)
CMYKcmyk(12.9%, 0%, 85.6%, 45.5%)
CIE-LABlab(54.64, -21.42, 54.69)
CIE-LCHlch(54.64, 58.73, 111.39°)
OKLaboklab(60.17% -0.0647 0.1183)
OKLCHoklch(60.17% 0.135 118.7)
XYZxyz(17.2445, 22.5808, 4.1118)
Luminance0.2258 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798B14 #26148B
analogous
#8B6114 #798B14 #3D8B14
triadic
#798B14 #14798B #8B1479
tetradic
#798B14 #148B61 #26148B #8B143D
square
#798B14 #148B61 #26148B #8B143D
split-complementary
#798B14 #143D8B #61148B
monochromatic
#1C2005 #4A550C #798B14 #A8C11C #C8E237

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #798b14;
/* rgb */ color: rgb(121, 139, 20);
/* oklch */ color: oklch(60.2% 0.135 118.7);
Tailwind
colors: {
  custom: {
    50: '#a3ac60',
    500: '#798b14',
    950: '#000000',
  },
}
SCSS
$custom: #798b14;
$custom-light: #a3ac60;
$custom-dark: #000000;
JSON
{
  "hex": "#798b14",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 20
  },
  "hsl": {
    "h": 69.076,
    "s": 74.843,
    "l": 31.176
  },
  "oklch": {
    "l": 0.60166,
    "c": 0.1348,
    "h": 118.7
  },
  "luminance": 0.22581
}

Semantic roles & 50–950 ramp

primary
#798B14
secondary
#503CBF
accent
#36F153
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#101005
muted
#7F7F7A

Preview Lab

Preview with #798B14

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

Preview Lab → · Contrast checker → · Palette generator →

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