#34871B#34871B

#34871B is a mid, vivid green. Relative luminance 0.181; OKLCH L 55.1% C 0.161 H 139.8°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#34871B
RGBrgb(52, 135, 27)
HSLhsl(106, 67%, 32%)
HSVhsv(106, 80%, 53%)
CMYKcmyk(61.5%, 0%, 80%, 47.1%)
CIE-LABlab(49.66, -44.81, 46.75)
CIE-LCHlch(49.66, 64.76, 133.79°)
OKLaboklab(55.13% -0.1232 0.1043)
OKLCHoklch(55.13% 0.161 139.8)
XYZxyz(10.2775, 18.1362, 3.9957)
Luminance0.1814 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34871B #6E1B87
analogous
#6A871B #34871B #1B8738
triadic
#34871B #1B3487 #871B34
tetradic
#34871B #1B6A87 #6E1B87 #87381B
square
#34871B #1B6A87 #6E1B87 #87381B
split-complementary
#34871B #381B87 #871B6A
monochromatic
#0D2107 #205411 #34871B #48BA25 #66D943

Accessibility & contrast

On white

4.54
#34871B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#34871B on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #34871B
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34871B#FFFFFF#000000##000000
##34871B1.004.544.634.63
#FFFFFF4.541.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7A00
Deuteranopia (green-blind)
#817427
Tritanopia (blue-blind)
#298273
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #34871b;
/* rgb */ color: rgb(52, 135, 27);
/* oklch */ color: oklch(55.1% 0.161 139.8);
Tailwind
colors: {
  custom: {
    50: '#76ab61',
    500: '#34871b',
    950: '#000000',
  },
}
SCSS
$custom: #34871b;
$custom-light: #76ab61;
$custom-dark: #000000;
JSON
{
  "hex": "#34871b",
  "rgb": {
    "r": 52,
    "g": 135,
    "b": 27
  },
  "hsl": {
    "h": 106.111,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.55126,
    "c": 0.16138,
    "h": 139.8
  },
  "luminance": 0.18137
}

Semantic roles & 50–950 ramp

primary
#34871B
secondary
#9F44BA
accent
#3EEAC2
background
#F7FAF6
surface
#EEF4EB
border
#C9CEC6
text
#091005
muted
#7B7F7A

Preview Lab

Preview with #34871B

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

Preview Lab → · Contrast checker → · Palette generator →

#34871B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva