#2D781B#2D781B

#2D781B is a mid, vivid green. Relative luminance 0.141; OKLCH L 50.7% C 0.146 H 140.3°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#2D781B
RGBrgb(45, 120, 27)
HSLhsl(108, 63%, 29%)
HSVhsv(108, 78%, 47%)
CMYKcmyk(62.5%, 0%, 77.5%, 52.9%)
CIE-LABlab(44.33, -40.96, 41.47)
CIE-LCHlch(44.33, 58.29, 134.65°)
OKLaboklab(50.66% -0.1123 0.0933)
OKLCHoklch(50.66% 0.146 140.3)
XYZxyz(7.9961, 14.0692, 3.3310)
Luminance0.1407 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D781B #661B78
analogous
#5C781B #2D781B #1B7838
triadic
#2D781B #1B2D78 #781B2D
tetradic
#2D781B #1B5C78 #661B78 #78381B
square
#2D781B #1B5C78 #661B78 #78381B
split-complementary
#2D781B #381B78 #781B5C
monochromatic
#091906 #1A4610 #2D781B #40AA26 #58D33B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D781B#FFFFFF#000000##FFFFFF
##2D781B1.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)
#7B6D08
Deuteranopia (green-blind)
#726625
Tritanopia (blue-blind)
#237466
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2d781b;
/* rgb */ color: rgb(45, 120, 27);
/* oklch */ color: oklch(50.7% 0.146 140.3);
Tailwind
colors: {
  custom: {
    50: '#70a05e',
    500: '#2d781b',
    950: '#000000',
  },
}
SCSS
$custom: #2d781b;
$custom-light: #70a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d781b",
  "rgb": {
    "r": 45,
    "g": 120,
    "b": 27
  },
  "hsl": {
    "h": 108.387,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.50657,
    "c": 0.14605,
    "h": 140.3
  },
  "luminance": 0.1407
}

Semantic roles & 50–950 ramp

primary
#2D781B
secondary
#9843AC
accent
#41E6C6
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2D781B

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

Preview Lab → · Contrast checker → · Palette generator →

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