#778B31#778B31

#778B31 is a mid, moderate yellow-green. Relative luminance 0.226; OKLCH L 60.2% C 0.118 H 120.7°. Best body text is #000000 at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#778B31
RGBrgb(119, 139, 49)
HSLhsl(73, 48%, 37%)
HSVhsv(73, 65%, 55%)
CMYKcmyk(14.4%, 0%, 64.7%, 45.5%)
CIE-LABlab(54.67, -20.72, 44.27)
CIE-LCHlch(54.67, 48.88, 115.08°)
OKLaboklab(60.21% -0.0601 0.1012)
OKLCHoklch(60.21% 0.118 120.7)
XYZxyz(17.3950, 22.6090, 6.3527)
Luminance0.2261 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#778B31 #45318B
analogous
#8B7231 #778B31 #4A8B31
triadic
#778B31 #31778B #8B3177
tetradic
#778B31 #318B72 #45318B #8B314A
square
#778B31 #318B72 #45318B #8B314A
split-complementary
#778B31 #314A8B #72318B
monochromatic
#2A3111 #505E21 #778B31 #9EB841 #B6CB6B

Accessibility & contrast

On white

3.80
#778B31 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.52
#778B31 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #778B31
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##778B31#FFFFFF#000000##000000
##778B311.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)
#938326
Deuteranopia (green-blind)
#918337
Tritanopia (blue-blind)
#7D8478
Achromatopsia (no color)
#838383

Design tokens & code

CSS
--color: #778b31;
/* rgb */ color: rgb(119, 139, 49);
/* oklch */ color: oklch(60.2% 0.118 120.7);
Tailwind
colors: {
  custom: {
    50: '#a1ac6e',
    500: '#778b31',
    950: '#000000',
  },
}
SCSS
$custom: #778b31;
$custom-light: #a1ac6e;
$custom-dark: #000000;
JSON
{
  "hex": "#778b31",
  "rgb": {
    "r": 119,
    "g": 139,
    "b": 49
  },
  "hsl": {
    "h": 73.333,
    "s": 47.872,
    "l": 36.863
  },
  "oklch": {
    "l": 0.60208,
    "c": 0.11772,
    "h": 120.7
  },
  "luminance": 0.22609
}

Semantic roles & 50–950 ramp

primary
#778B31
secondary
#7665B2
accent
#50D76E
background
#FAFAF6
surface
#F4F4EC
border
#CECEC7
text
#0F1007
muted
#7F7F7A

Preview Lab

Preview with #778B31

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

Preview Lab → · Contrast checker → · Palette generator →

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