#34831B#34831B

#34831B is a mid, vivid green. Relative luminance 0.170; OKLCH L 54.0% C 0.157 H 139.5°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#34831B
RGBrgb(52, 131, 27)
HSLhsl(106, 66%, 31%)
HSVhsv(106, 79%, 51%)
CMYKcmyk(60.3%, 0%, 79.4%, 48.6%)
CIE-LABlab(48.31, -43.31, 45.45)
CIE-LCHlch(48.31, 62.78, 133.62°)
OKLaboklab(54.01% -0.1191 0.1016)
OKLCHoklch(54.01% 0.157 139.5)
XYZxyz(9.7299, 17.0409, 3.8132)
Luminance0.1704 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#34831B #6A1B83
analogous
#68831B #34831B #1B8336
triadic
#34831B #1B3483 #831B34
tetradic
#34831B #1B6883 #6A1B83 #83361B
square
#34831B #1B6883 #6A1B83 #83361B
split-complementary
#34831B #361B83 #831B68
monochromatic
#0C1E06 #205011 #34831B #48B625 #65D841

Accessibility & contrast

On white

4.76
#34831B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.41
#34831B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #34831B
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##34831B#FFFFFF#000000##FFFFFF
##34831B1.004.764.414.76
#FFFFFF4.761.0021.001.00
#0000004.4121.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877702
Deuteranopia (green-blind)
#7D7027
Tritanopia (blue-blind)
#2B7E6F
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #34831b;
/* rgb */ color: rgb(52, 131, 27);
/* oklch */ color: oklch(54.0% 0.157 139.5);
Tailwind
colors: {
  custom: {
    50: '#76a860',
    500: '#34831b',
    950: '#000000',
  },
}
SCSS
$custom: #34831b;
$custom-light: #76a860;
$custom-dark: #000000;
JSON
{
  "hex": "#34831b",
  "rgb": {
    "r": 52,
    "g": 131,
    "b": 27
  },
  "hsl": {
    "h": 105.577,
    "s": 65.823,
    "l": 30.98
  },
  "oklch": {
    "l": 0.54011,
    "c": 0.15653,
    "h": 139.5
  },
  "luminance": 0.17042
}

Semantic roles & 50–950 ramp

primary
#34831B
secondary
#9B43B6
accent
#3FE9C0
background
#F7FAF5
surface
#EEF4EA
border
#C9CEC6
text
#091005
muted
#7B7F79

Preview Lab

Preview with #34831B

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

Preview Lab → · Contrast checker → · Palette generator →

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