#798B1B#798B1B

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

Color values

HEX#798B1B
RGBrgb(121, 139, 27)
HSLhsl(70, 67%, 33%)
HSVhsv(70, 81%, 55%)
CMYKcmyk(12.9%, 0%, 80.6%, 45.5%)
CIE-LABlab(54.67, -21.15, 52.75)
CIE-LCHlch(54.67, 56.84, 111.85°)
OKLaboklab(60.2% -0.0635 0.1153)
OKLCHoklch(60.2% 0.132 118.8)
XYZxyz(17.3160, 22.6094, 4.4885)
Luminance0.2261 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798B1B #2D1B8B
analogous
#8B651B #798B1B #418B1B
triadic
#798B1B #1B798B #8B1B79
tetradic
#798B1B #1B8B65 #2D1B8B #8B1B41
square
#798B1B #1B8B65 #2D1B8B #8B1B41
split-complementary
#798B1B #1B418B #651B8B
monochromatic
#202507 #4C5811 #798B1B #A6BE25 #C3DB45

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

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

Design tokens & code

CSS
--color: #798b1b;
/* rgb */ color: rgb(121, 139, 27);
/* oklch */ color: oklch(60.2% 0.132 118.8);
Tailwind
colors: {
  custom: {
    50: '#a3ac62',
    500: '#798b1b',
    950: '#000000',
  },
}
SCSS
$custom: #798b1b;
$custom-light: #a3ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#798b1b",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 27
  },
  "hsl": {
    "h": 69.643,
    "s": 67.47,
    "l": 32.549
  },
  "oklch": {
    "l": 0.60199,
    "c": 0.13166,
    "h": 118.8
  },
  "luminance": 0.22609
}

Semantic roles & 50–950 ramp

primary
#798B1B
secondary
#5845BC
accent
#3DEA59
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798B1B

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

Preview Lab → · Contrast checker → · Palette generator →

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