#2B781B#2B781B

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

Color values

HEX#2B781B
RGBrgb(43, 120, 27)
HSLhsl(110, 63%, 29%)
HSVhsv(110, 78%, 47%)
CMYKcmyk(64.2%, 0%, 77.5%, 52.9%)
CIE-LABlab(44.27, -41.48, 41.39)
CIE-LCHlch(44.27, 58.59, 135.06°)
OKLaboklab(50.59% -0.1136 0.0932)
OKLCHoklch(50.59% 0.147 140.6)
XYZxyz(7.9102, 14.0249, 3.3269)
Luminance0.1403 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B781B #681B78
analogous
#5A781B #2B781B #1B783A
triadic
#2B781B #1B2B78 #781B2B
tetradic
#2B781B #1B5A78 #681B78 #783A1B
square
#2B781B #1B5A78 #681B78 #783A1B
split-complementary
#2B781B #3A1B78 #781B5A
monochromatic
#091906 #194610 #2B781B #3DAA26 #55D33B

Accessibility & contrast

On white

5.52
#2B781B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2B781B
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B781B#FFFFFF#000000##FFFFFF
##2B781B1.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b781b;
/* rgb */ color: rgb(43, 120, 27);
/* oklch */ color: oklch(50.6% 0.147 140.6);
Tailwind
colors: {
  custom: {
    50: '#6fa05e',
    500: '#2b781b',
    950: '#000000',
  },
}
SCSS
$custom: #2b781b;
$custom-light: #6fa05e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b781b",
  "rgb": {
    "r": 43,
    "g": 120,
    "b": 27
  },
  "hsl": {
    "h": 109.677,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.50587,
    "c": 0.14693,
    "h": 140.6
  },
  "luminance": 0.14026
}

Semantic roles & 50–950 ramp

primary
#2B781B
secondary
#9A43AC
accent
#41E6CA
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2B781B

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

Preview Lab → · Contrast checker → · Palette generator →

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