#3A771B#3A771B

#3A771B is a mid, vivid yellow-green. Relative luminance 0.142; OKLCH L 50.9% C 0.138 H 137.3°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#3A771B
RGBrgb(58, 119, 27)
HSLhsl(100, 63%, 29%)
HSVhsv(100, 77%, 47%)
CMYKcmyk(51.3%, 0%, 77.3%, 53.3%)
CIE-LABlab(44.48, -36.74, 41.78)
CIE-LCHlch(44.48, 55.64, 131.33°)
OKLaboklab(50.91% -0.1018 0.0938)
OKLCHoklch(50.91% 0.138 137.3)
XYZxyz(8.5393, 14.1717, 3.3221)
Luminance0.1417 (WCAG relative)
Temperaturewarm
Familyyellow-green

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A771B #581B77
analogous
#68771B #3A771B #1B772A
triadic
#3A771B #1B3A77 #771B3A
tetradic
#3A771B #1B6877 #581B77 #772A1B
square
#3A771B #1B6877 #581B77 #772A1B
split-complementary
#3A771B #2A1B77 #771B68
monochromatic
#0C1906 #224510 #3A771B #52A926 #6DD23A

Accessibility & contrast

On white

5.48
#3A771B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#3A771B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A771B
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A771B#FFFFFF#000000##FFFFFF
##3A771B1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C08
Deuteranopia (green-blind)
#736724
Tritanopia (blue-blind)
#367365
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #3a771b;
/* rgb */ color: rgb(58, 119, 27);
/* oklch */ color: oklch(50.9% 0.138 137.3);
Tailwind
colors: {
  custom: {
    50: '#779f5e',
    500: '#3a771b',
    950: '#000000',
  },
}
SCSS
$custom: #3a771b;
$custom-light: #779f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a771b",
  "rgb": {
    "r": 58,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 99.783,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.50914,
    "c": 0.13847,
    "h": 137.3
  },
  "luminance": 0.14172
}

Semantic roles & 50–950 ramp

primary
#3A771B
secondary
#8842AB
accent
#42E6AF
background
#F7F9F5
surface
#EEF2E9
border
#C9CCC5
text
#090E05
muted
#7B7E79

Preview Lab

Preview with #3A771B

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

Preview Lab → · Contrast checker → · Palette generator →

#3A771B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva