#3A771F#3A771F

#3A771F is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.9% C 0.136 H 137.8°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#3A771F
RGBrgb(58, 119, 31)
HSLhsl(102, 59%, 29%)
HSVhsv(102, 74%, 47%)
CMYKcmyk(51.3%, 0%, 73.9%, 53.3%)
CIE-LABlab(44.51, -36.43, 40.23)
CIE-LCHlch(44.51, 54.28, 132.16°)
OKLaboklab(50.95% -0.1007 0.0912)
OKLCHoklch(50.95% 0.136 137.8)
XYZxyz(8.5888, 14.1915, 3.5827)
Luminance0.1419 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A771F #5C1F77
analogous
#66771F #3A771F #1F7730
triadic
#3A771F #1F3A77 #771F3A
tetradic
#3A771F #1F6677 #5C1F77 #77301F
square
#3A771F #1F6677 #5C1F77 #77301F
split-complementary
#3A771F #301F77 #771F66
monochromatic
#0C1806 #224612 #3A771F #52A82C #6DCE43

Accessibility & contrast

On white

5.47
#3A771F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#3A771F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3A771F
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A771F#FFFFFF#000000##FFFFFF
##3A771F1.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C10
Deuteranopia (green-blind)
#736727
Tritanopia (blue-blind)
#367366
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #3a771f;
/* rgb */ color: rgb(58, 119, 31);
/* oklch */ color: oklch(50.9% 0.136 137.8);
Tailwind
colors: {
  custom: {
    50: '#779f60',
    500: '#3a771f',
    950: '#000000',
  },
}
SCSS
$custom: #3a771f;
$custom-light: #779f60;
$custom-dark: #000000;
JSON
{
  "hex": "#3a771f",
  "rgb": {
    "r": 58,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 101.591,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.50946,
    "c": 0.13587,
    "h": 137.8
  },
  "luminance": 0.14192
}

Semantic roles & 50–950 ramp

primary
#3A771F
secondary
#8C47AB
accent
#46E2B2
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#090E05
muted
#7B7E79

Preview Lab

Preview with #3A771F

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

Preview Lab → · Contrast checker → · Palette generator →

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