#34781B#34781B

#34781B is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.9% C 0.143 H 138.9°. Best body text is #FFFFFF at 5.46:1 contrast (WCAG AA passes).

Color values

HEX#34781B
RGBrgb(52, 120, 27)
HSLhsl(104, 63%, 29%)
HSVhsv(104, 78%, 47%)
CMYKcmyk(56.7%, 0%, 77.5%, 52.9%)
CIE-LABlab(44.58, -39.01, 41.80)
CIE-LCHlch(44.58, 57.17, 133.03°)
OKLaboklab(50.93% -0.1075 0.0939)
OKLCHoklch(50.93% 0.143 138.9)
XYZxyz(8.3302, 14.2415, 3.3466)
Luminance0.1424 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34781B #5F1B78
analogous
#63781B #34781B #1B7831
triadic
#34781B #1B3478 #781B34
tetradic
#34781B #1B6378 #5F1B78 #78311B
square
#34781B #1B6378 #5F1B78 #78311B
split-complementary
#34781B #311B78 #781B63
monochromatic
#0B1906 #1E4610 #34781B #4AAA26 #64D33B

Accessibility & contrast

On white

5.46
#34781B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.85
#34781B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #34781B
5.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34781B#FFFFFF#000000##FFFFFF
##34781B1.005.463.855.46
#FFFFFF5.461.0021.001.00
#0000003.8521.001.0021.00
##FFFFFF5.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C6D08
Deuteranopia (green-blind)
#736725
Tritanopia (blue-blind)
#2D7466
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #34781b;
/* rgb */ color: rgb(52, 120, 27);
/* oklch */ color: oklch(50.9% 0.143 138.9);
Tailwind
colors: {
  custom: {
    50: '#74a05e',
    500: '#34781b',
    950: '#000000',
  },
}
SCSS
$custom: #34781b;
$custom-light: #74a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#34781b",
  "rgb": {
    "r": 52,
    "g": 120,
    "b": 27
  },
  "hsl": {
    "h": 103.871,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.50928,
    "c": 0.14279,
    "h": 138.9
  },
  "luminance": 0.14242
}

Semantic roles & 50–950 ramp

primary
#34781B
secondary
#9043AC
accent
#41E6BA
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#090F05
muted
#7B7E79

Preview Lab

Preview with #34781B

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

Preview Lab → · Contrast checker → · Palette generator →

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