#798B1D#798B1D

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

Color values

HEX#798B1D
RGBrgb(121, 139, 29)
HSLhsl(70, 65%, 33%)
HSVhsv(70, 79%, 55%)
CMYKcmyk(12.9%, 0%, 79.1%, 45.5%)
CIE-LABlab(54.68, -21.07, 52.13)
CIE-LCHlch(54.68, 56.22, 112.01°)
OKLaboklab(60.21% -0.0631 0.1144)
OKLCHoklch(60.21% 0.131 118.9)
XYZxyz(17.3399, 22.6190, 4.6146)
Luminance0.2262 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798B1D #2F1D8B
analogous
#8B661D #798B1D #428B1D
triadic
#798B1D #1D798B #8B1D79
tetradic
#798B1D #1D8B66 #2F1D8B #8B1D42
square
#798B1D #1D8B66 #2F1D8B #8B1D42
split-complementary
#798B1D #1D428B #661D8B
monochromatic
#212608 #4D5812 #798B1D #A5BE28 #C2D949

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798B1D#FFFFFF#000000##000000
##798B1D1.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)
#938327
Tritanopia (blue-blind)
#818377
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #798b1d;
/* rgb */ color: rgb(121, 139, 29);
/* oklch */ color: oklch(60.2% 0.131 118.9);
Tailwind
colors: {
  custom: {
    50: '#a3ac63',
    500: '#798b1d',
    950: '#000000',
  },
}
SCSS
$custom: #798b1d;
$custom-light: #a3ac63;
$custom-dark: #000000;
JSON
{
  "hex": "#798b1d",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 29
  },
  "hsl": {
    "h": 69.818,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.6021,
    "c": 0.13062,
    "h": 118.9
  },
  "luminance": 0.22619
}

Semantic roles & 50–950 ramp

primary
#798B1D
secondary
#5B49BB
accent
#3FE85B
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798B1D

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

Preview Lab → · Contrast checker → · Palette generator →

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