#3A871B#3A871B

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

Color values

HEX#3A871B
RGBrgb(58, 135, 27)
HSLhsl(103, 67%, 32%)
HSVhsv(103, 80%, 53%)
CMYKcmyk(57%, 0%, 80%, 47.1%)
CIE-LABlab(49.86, -43.18, 47.01)
CIE-LCHlch(49.86, 63.83, 132.57°)
OKLaboklab(55.35% -0.1192 0.1048)
OKLCHoklch(55.35% 0.159 138.7)
XYZxyz(10.6063, 18.3057, 4.0111)
Luminance0.1831 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A871B #681B87
analogous
#70871B #3A871B #1B8732
triadic
#3A871B #1B3A87 #871B3A
tetradic
#3A871B #1B7087 #681B87 #87321B
square
#3A871B #1B7087 #681B87 #87321B
split-complementary
#3A871B #321B87 #871B70
monochromatic
#0E2107 #245411 #3A871B #50BA25 #6ED943

Accessibility & contrast

On white

4.51
#3A871B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##3A871B#FFFFFF#000000##000000
##3A871B1.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B00
Deuteranopia (green-blind)
#827427
Tritanopia (blue-blind)
#338273
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #3a871b;
/* rgb */ color: rgb(58, 135, 27);
/* oklch */ color: oklch(55.4% 0.159 138.7);
Tailwind
colors: {
  custom: {
    50: '#79ab61',
    500: '#3a871b',
    950: '#000000',
  },
}
SCSS
$custom: #3a871b;
$custom-light: #79ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#3a871b",
  "rgb": {
    "r": 58,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 102.778,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.55352,
    "c": 0.15867,
    "h": 138.7
  },
  "luminance": 0.18307
}

Semantic roles & 50–950 ramp

primary
#3A871B
secondary
#9844BA
accent
#3EEAB8
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#0A1005
muted
#7C7F7A

Preview Lab

Preview with #3A871B

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

Preview Lab → · Contrast checker → · Palette generator →

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