#778A1F#778A1F

#778A1F is a mid, vivid yellow-green. Relative luminance 0.222; OKLCH L 59.8% C 0.129 H 119.5°. Best body text is #000000 at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#778A1F
RGBrgb(119, 138, 31)
HSLhsl(71, 63%, 33%)
HSVhsv(71, 78%, 54%)
CMYKcmyk(13.8%, 0%, 77.5%, 45.9%)
CIE-LABlab(54.24, -21.34, 51.00)
CIE-LCHlch(54.24, 55.28, 112.71°)
OKLaboklab(59.82% -0.0636 0.1124)
OKLCHoklch(59.82% 0.129 119.5)
XYZxyz(16.9439, 22.1979, 4.6881)
Luminance0.2220 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#778A1F #321F8A
analogous
#8A671F #778A1F #418A1F
triadic
#778A1F #1F778A #8A1F77
tetradic
#778A1F #1F8A67 #321F8A #8A1F41
square
#778A1F #1F8A67 #321F8A #8A1F41
split-complementary
#778A1F #1F418A #671F8A
monochromatic
#212609 #4C5814 #778A1F #A2BC2A #BED74C

Accessibility & contrast

On white

3.86
#778A1F on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.44
#778A1F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #778A1F
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##778A1F#FFFFFF#000000##000000
##778A1F1.003.865.445.44
#FFFFFF3.861.0021.0021.00
#0000005.4421.001.001.00
##0000005.4421.001.001.00

Color blindness preview

Protanopia (red-blind)
#938205
Deuteranopia (green-blind)
#918229
Tritanopia (blue-blind)
#7E8276
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #778a1f;
/* rgb */ color: rgb(119, 138, 31);
/* oklch */ color: oklch(59.8% 0.129 119.5);
Tailwind
colors: {
  custom: {
    50: '#a1ac64',
    500: '#778a1f',
    950: '#000000',
  },
}
SCSS
$custom: #778a1f;
$custom-light: #a1ac64;
$custom-dark: #000000;
JSON
{
  "hex": "#778a1f",
  "rgb": {
    "r": 119,
    "g": 138,
    "b": 31
  },
  "hsl": {
    "h": 70.654,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.5982,
    "c": 0.12914,
    "h": 119.5
  },
  "luminance": 0.22198
}

Semantic roles & 50–950 ramp

primary
#778A1F
secondary
#5F4BBA
accent
#41E65F
background
#FAFAF6
surface
#F4F4EB
border
#CECEC6
text
#0F1006
muted
#7F7F7A

Preview Lab

Preview with #778A1F

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

Preview Lab → · Contrast checker → · Palette generator →

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