#798B1E#798B1E

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

Color values

HEX#798B1E
RGBrgb(121, 139, 30)
HSLhsl(70, 64%, 33%)
HSVhsv(70, 78%, 55%)
CMYKcmyk(12.9%, 0%, 78.4%, 45.5%)
CIE-LABlab(54.68, -21.02, 51.81)
CIE-LCHlch(54.68, 55.91, 112.09°)
OKLaboklab(60.22% -0.0629 0.1139)
OKLCHoklch(60.22% 0.13 118.9)
XYZxyz(17.3525, 22.6241, 4.6808)
Luminance0.2262 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#798B1E #301E8B
analogous
#8B661E #798B1E #428B1E
triadic
#798B1E #1E798B #8B1E79
tetradic
#798B1E #1E8B66 #301E8B #8B1E42
square
#798B1E #1E8B66 #301E8B #8B1E42
split-complementary
#798B1E #1E428B #661E8B
monochromatic
#212608 #4D5913 #798B1E #A5BD29 #C1D84B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##798B1E#FFFFFF#000000##000000
##798B1E1.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)
#948302
Deuteranopia (green-blind)
#928328
Tritanopia (blue-blind)
#818377
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #798b1e;
/* rgb */ color: rgb(121, 139, 30);
/* oklch */ color: oklch(60.2% 0.130 118.9);
Tailwind
colors: {
  custom: {
    50: '#a3ac64',
    500: '#798b1e',
    950: '#000000',
  },
}
SCSS
$custom: #798b1e;
$custom-light: #a3ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#798b1e",
  "rgb": {
    "r": 121,
    "g": 139,
    "b": 30
  },
  "hsl": {
    "h": 69.908,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.60216,
    "c": 0.13009,
    "h": 118.9
  },
  "luminance": 0.22624
}

Semantic roles & 50–950 ramp

primary
#798B1E
secondary
#5D4ABB
accent
#40E75C
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #798B1E

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

Preview Lab → · Contrast checker → · Palette generator →

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