#798A1F#798A1F

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

Color values

HEX#798A1F
RGBrgb(121, 138, 31)
HSLhsl(70, 63%, 33%)
HSVhsv(70, 78%, 54%)
CMYKcmyk(12.3%, 0%, 77.5%, 45.9%)
CIE-LABlab(54.39, -20.46, 51.19)
CIE-LCHlch(54.39, 55.13, 111.79°)
OKLaboklab(59.98% -0.0613 0.1128)
OKLCHoklch(59.98% 0.128 118.5)
XYZxyz(17.2213, 22.3410, 4.7011)
Luminance0.2234 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798A1F #301F8A
analogous
#8A651F #798A1F #438A1F
triadic
#798A1F #1F798A #8A1F79
tetradic
#798A1F #1F8A65 #301F8A #8A1F43
square
#798A1F #1F8A65 #301F8A #8A1F43
split-complementary
#798A1F #1F438A #651F8A
monochromatic
#212609 #4D5814 #798A1F #A5BC2A #C1D74C

Accessibility & contrast

On white

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

On black

5.47
#798A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #798A1F
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##798A1F#FFFFFF#000000##000000
##798A1F1.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #798a1f;
/* rgb */ color: rgb(121, 138, 31);
/* oklch */ color: oklch(60.0% 0.128 118.5);
Tailwind
colors: {
  custom: {
    50: '#a3ac64',
    500: '#798a1f',
    950: '#000000',
  },
}
SCSS
$custom: #798a1f;
$custom-light: #a3ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#798a1f",
  "rgb": {
    "r": 121,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 69.533,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.59979,
    "c": 0.12833,
    "h": 118.5
  },
  "luminance": 0.22341
}

Semantic roles & 50–950 ramp

primary
#798A1F
secondary
#5D4BBA
accent
#41E65C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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