#798A1B#798A1B

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

Color values

HEX#798A1B
RGBrgb(121, 138, 27)
HSLhsl(69, 67%, 32%)
HSVhsv(69, 80%, 54%)
CMYKcmyk(12.3%, 0%, 80.4%, 45.9%)
CIE-LABlab(54.37, -20.64, 52.48)
CIE-LCHlch(54.37, 56.39, 111.47°)
OKLaboklab(59.96% -0.0621 0.1148)
OKLCHoklch(59.96% 0.13 118.4)
XYZxyz(17.1719, 22.3212, 4.4405)
Luminance0.2232 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798A1B #2C1B8A
analogous
#8A631B #798A1B #428A1B
triadic
#798A1B #1B798A #8A1B79
tetradic
#798A1B #1B8A63 #2C1B8A #8A1B42
square
#798A1B #1B8A63 #2C1B8A #8A1B42
split-complementary
#798A1B #1B428A #631B8A
monochromatic
#1F2407 #4C5711 #798A1B #A6BD25 #C4DB45

Accessibility & contrast

On white

3.84
#798A1B on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##798A1B#FFFFFF#000000##000000
##798A1B1.003.845.465.46
#FFFFFF3.841.0021.0021.00
#0000005.4621.001.001.00
##0000005.4621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #798a1b;
/* rgb */ color: rgb(121, 138, 27);
/* oklch */ color: oklch(60.0% 0.130 118.4);
Tailwind
colors: {
  custom: {
    50: '#a3ac62',
    500: '#798a1b',
    950: '#000000',
  },
}
SCSS
$custom: #798a1b;
$custom-light: #a3ac62;
$custom-dark: #000000;
JSON
{
  "hex": "#798a1b",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 27
  },
  "hsl": {
    "h": 69.189,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.59956,
    "c": 0.13048,
    "h": 118.4
  },
  "luminance": 0.22321
}

Semantic roles & 50–950 ramp

primary
#798A1B
secondary
#5745BC
accent
#3EEA58
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798A1B

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

Preview Lab → · Contrast checker → · Palette generator →

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