#2B781F#2B781F

#2B781F is a mid, vivid green. Relative luminance 0.140; OKLCH L 50.6% C 0.144 H 141.2°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#2B781F
RGBrgb(43, 120, 31)
HSLhsl(112, 59%, 30%)
HSVhsv(112, 74%, 47%)
CMYKcmyk(64.2%, 0%, 74.2%, 52.9%)
CIE-LABlab(44.30, -41.15, 39.84)
CIE-LCHlch(44.30, 57.28, 135.92°)
OKLaboklab(50.62% -0.1124 0.0905)
OKLCHoklch(50.62% 0.144 141.2)
XYZxyz(7.9597, 14.0447, 3.5875)
Luminance0.1404 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B781F #6C1F78
analogous
#58781F #2B781F #1F7840
triadic
#2B781F #1F2B78 #781F2B
tetradic
#2B781F #1F5878 #6C1F78 #78401F
square
#2B781F #1F5878 #6C1F78 #78401F
split-complementary
#2B781F #401F78 #781F58
monochromatic
#091806 #1A4712 #2B781F #3CA92C #56CE43

Accessibility & contrast

On white

5.51
#2B781F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#2B781F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B781F
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B781F#FFFFFF#000000##FFFFFF
##2B781F1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6D10
Deuteranopia (green-blind)
#726628
Tritanopia (blue-blind)
#1F7466
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2b781f;
/* rgb */ color: rgb(43, 120, 31);
/* oklch */ color: oklch(50.6% 0.144 141.2);
Tailwind
colors: {
  custom: {
    50: '#6fa060',
    500: '#2b781f',
    950: '#000000',
  },
}
SCSS
$custom: #2b781f;
$custom-light: #6fa060;
$custom-dark: #000000;
JSON
{
  "hex": "#2b781f",
  "rgb": {
    "r": 43,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 111.91,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.50619,
    "c": 0.14437,
    "h": 141.2
  },
  "luminance": 0.14045
}

Semantic roles & 50–950 ramp

primary
#2B781F
secondary
#9E47AB
accent
#46E2CD
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2B781F

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

Preview Lab → · Contrast checker → · Palette generator →

#2B781F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva