#34771B#34771B

#34771B is a mid, vivid green. Relative luminance 0.140; OKLCH L 50.6% C 0.142 H 138.8°. Best body text is #FFFFFF at 5.53:1 contrast (WCAG AA passes).

Color values

HEX#34771B
RGBrgb(52, 119, 27)
HSLhsl(104, 63%, 29%)
HSVhsv(104, 77%, 47%)
CMYKcmyk(56.3%, 0%, 77.3%, 53.3%)
CIE-LABlab(44.24, -38.61, 41.46)
CIE-LCHlch(44.24, 56.65, 132.96°)
OKLaboklab(50.65% -0.1065 0.0932)
OKLCHoklch(50.65% 0.142 138.8)
XYZxyz(8.2105, 14.0022, 3.3067)
Luminance0.1400 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34771B #5E1B77
analogous
#62771B #34771B #1B7730
triadic
#34771B #1B3477 #771B34
tetradic
#34771B #1B6277 #5E1B77 #77301B
square
#34771B #1B6277 #5E1B77 #77301B
split-complementary
#34771B #301B77 #771B62
monochromatic
#0B1906 #1E4510 #34771B #4AA926 #63D23A

Accessibility & contrast

On white

5.53
#34771B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #34771B
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34771B#FFFFFF#000000##FFFFFF
##34771B1.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6C08
Deuteranopia (green-blind)
#726625
Tritanopia (blue-blind)
#2E7365
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #34771b;
/* rgb */ color: rgb(52, 119, 27);
/* oklch */ color: oklch(50.6% 0.142 138.8);
Tailwind
colors: {
  custom: {
    50: '#739f5e',
    500: '#34771b',
    950: '#000000',
  },
}
SCSS
$custom: #34771b;
$custom-light: #739f5e;
$custom-dark: #000000;
JSON
{
  "hex": "#34771b",
  "rgb": {
    "r": 52,
    "g": 119,
    "b": 27
  },
  "hsl": {
    "h": 103.696,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.50647,
    "c": 0.14151,
    "h": 138.8
  },
  "luminance": 0.14003
}

Semantic roles & 50–950 ramp

primary
#34771B
secondary
#8F42AB
accent
#42E6B9
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090E05
muted
#7B7E79

Preview Lab

Preview with #34771B

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

Preview Lab → · Contrast checker → · Palette generator →

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