#3A871F#3A871F

#3A871F is a mid, vivid green. Relative luminance 0.183; OKLCH L 55.4% C 0.156 H 139.1°. Best body text is #000000 at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#3A871F
RGBrgb(58, 135, 31)
HSLhsl(104, 63%, 33%)
HSVhsv(104, 77%, 53%)
CMYKcmyk(57%, 0%, 77%, 47.1%)
CIE-LABlab(49.89, -42.91, 45.64)
CIE-LCHlch(49.89, 62.64, 133.23°)
OKLaboklab(55.38% -0.1182 0.1025)
OKLCHoklch(55.38% 0.156 139.1)
XYZxyz(10.6558, 18.3255, 4.2717)
Luminance0.1833 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A871F #6C1F87
analogous
#6E871F #3A871F #1F8738
triadic
#3A871F #1F3A87 #871F3A
tetradic
#3A871F #1F6E87 #6C1F87 #87381F
square
#3A871F #1F6E87 #6C1F87 #87381F
split-complementary
#3A871F #381F87 #871F6E
monochromatic
#0F2308 #255514 #3A871F #4FB92A #6FD64B

Accessibility & contrast

On white

4.50
#3A871F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.67
#3A871F on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #3A871F
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A871F#FFFFFF#000000##000000
##3A871F1.004.504.674.67
#FFFFFF4.501.0021.0021.00
#0000004.6721.001.001.00
##0000004.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B09
Deuteranopia (green-blind)
#81742A
Tritanopia (blue-blind)
#328273
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #3a871f;
/* rgb */ color: rgb(58, 135, 31);
/* oklch */ color: oklch(55.4% 0.156 139.1);
Tailwind
colors: {
  custom: {
    50: '#79ab63',
    500: '#3a871f',
    950: '#000000',
  },
}
SCSS
$custom: #3a871f;
$custom-light: #79ab63;
$custom-dark: #000000;
JSON
{
  "hex": "#3a871f",
  "rgb": {
    "r": 58,
    "g": 135,
    "b": 31
  },
  "hsl": {
    "h": 104.423,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.55379,
    "c": 0.15645,
    "h": 139.1
  },
  "luminance": 0.18326
}

Semantic roles & 50–950 ramp

primary
#3A871F
secondary
#9B4AB8
accent
#42E6BB
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1006
muted
#7C7F7A

Preview Lab

Preview with #3A871F

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

Preview Lab → · Contrast checker → · Palette generator →

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