#3A871C#3A871C

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

Color values

HEX#3A871C
RGBrgb(58, 135, 28)
HSLhsl(103, 66%, 32%)
HSVhsv(103, 79%, 53%)
CMYKcmyk(57%, 0%, 79.3%, 47.1%)
CIE-LABlab(49.87, -43.12, 46.68)
CIE-LCHlch(49.87, 63.55, 132.73°)
OKLaboklab(55.36% -0.1189 0.1042)
OKLCHoklch(55.36% 0.158 138.8)
XYZxyz(10.6181, 18.3104, 4.0731)
Luminance0.1831 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A871C #691C87
analogous
#6F871C #3A871C #1C8734
triadic
#3A871C #1C3A87 #871C3A
tetradic
#3A871C #1C6F87 #691C87 #87341C
square
#3A871C #1C6F87 #691C87 #87341C
split-complementary
#3A871C #341C87 #871C6F
monochromatic
#0E2207 #245411 #3A871C #50BA27 #6ED845

Accessibility & contrast

On white

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

On black

4.66
#3A871C on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #3A871C
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A871C#FFFFFF#000000##000000
##3A871C1.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B01
Deuteranopia (green-blind)
#827428
Tritanopia (blue-blind)
#328273
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #3a871c;
/* rgb */ color: rgb(58, 135, 28);
/* oklch */ color: oklch(55.4% 0.158 138.8);
Tailwind
colors: {
  custom: {
    50: '#79ab61',
    500: '#3a871c',
    950: '#000000',
  },
}
SCSS
$custom: #3a871c;
$custom-light: #79ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#3a871c",
  "rgb": {
    "r": 58,
    "g": 135,
    "b": 28
  },
  "hsl": {
    "h": 103.178,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.55359,
    "c": 0.15813,
    "h": 138.8
  },
  "luminance": 0.18311
}

Semantic roles & 50–950 ramp

primary
#3A871C
secondary
#9945BA
accent
#3FE9B9
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #3A871C

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

Preview Lab → · Contrast checker → · Palette generator →

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