#34771F#34771F

#34771F is a mid, vivid green. Relative luminance 0.140; OKLCH L 50.7% C 0.139 H 139.3°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#34771F
RGBrgb(52, 119, 31)
HSLhsl(106, 59%, 29%)
HSVhsv(106, 74%, 47%)
CMYKcmyk(56.3%, 0%, 73.9%, 53.3%)
CIE-LABlab(44.26, -38.29, 39.91)
CIE-LCHlch(44.26, 55.31, 133.81°)
OKLaboklab(50.68% -0.1053 0.0906)
OKLCHoklch(50.68% 0.139 139.3)
XYZxyz(8.2600, 14.0220, 3.5673)
Luminance0.1402 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34771F #621F77
analogous
#60771F #34771F #1F7736
triadic
#34771F #1F3477 #771F34
tetradic
#34771F #1F6077 #621F77 #77361F
square
#34771F #1F6077 #621F77 #77361F
split-complementary
#34771F #361F77 #771F60
monochromatic
#0B1806 #1F4612 #34771F #49A82C #64CE43

Accessibility & contrast

On white

5.52
#34771F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.80
#34771F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #34771F
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34771F#FFFFFF#000000##FFFFFF
##34771F1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C11
Deuteranopia (green-blind)
#726728
Tritanopia (blue-blind)
#2D7366
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #34771f;
/* rgb */ color: rgb(52, 119, 31);
/* oklch */ color: oklch(50.7% 0.139 139.3);
Tailwind
colors: {
  custom: {
    50: '#739f60',
    500: '#34771f',
    950: '#000000',
  },
}
SCSS
$custom: #34771f;
$custom-light: #739f60;
$custom-dark: #000000;
JSON
{
  "hex": "#34771f",
  "rgb": {
    "r": 52,
    "g": 119,
    "b": 31
  },
  "hsl": {
    "h": 105.682,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.5068,
    "c": 0.13892,
    "h": 139.3
  },
  "luminance": 0.14023
}

Semantic roles & 50–950 ramp

primary
#34771F
secondary
#9347AB
accent
#46E2BD
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#090E05
muted
#7B7E79

Preview Lab

Preview with #34771F

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

Preview Lab → · Contrast checker → · Palette generator →

#34771F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva