#2D781A#2D781A

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

Color values

HEX#2D781A
RGBrgb(45, 120, 26)
HSLhsl(108, 64%, 29%)
HSVhsv(108, 78%, 47%)
CMYKcmyk(62.5%, 0%, 78.3%, 52.9%)
CIE-LABlab(44.33, -41.04, 41.84)
CIE-LCHlch(44.33, 58.61, 134.45°)
OKLaboklab(50.65% -0.1126 0.094)
OKLCHoklch(50.65% 0.147 140.2)
XYZxyz(7.9847, 14.0647, 3.2711)
Luminance0.1406 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2D781A #651A78
analogous
#5C781A #2D781A #1A7836
triadic
#2D781A #1A2D78 #781A2D
tetradic
#2D781A #1A5C78 #651A78 #78361A
square
#2D781A #1A5C78 #651A78 #78361A
split-complementary
#2D781A #361A78 #781A5C
monochromatic
#091905 #1A460F #2D781A #40AA25 #58D438

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2D781A#FFFFFF#000000##FFFFFF
##2D781A1.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)
#7B6D06
Deuteranopia (green-blind)
#726624
Tritanopia (blue-blind)
#237466
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2d781a;
/* rgb */ color: rgb(45, 120, 26);
/* oklch */ color: oklch(50.6% 0.147 140.2);
Tailwind
colors: {
  custom: {
    50: '#70a05e',
    500: '#2d781a',
    950: '#000000',
  },
}
SCSS
$custom: #2d781a;
$custom-light: #70a05e;
$custom-dark: #000000;
JSON
{
  "hex": "#2d781a",
  "rgb": {
    "r": 45,
    "g": 120,
    "b": 26
  },
  "hsl": {
    "h": 107.872,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.5065,
    "c": 0.14665,
    "h": 140.2
  },
  "luminance": 0.14065
}

Semantic roles & 50–950 ramp

primary
#2D781A
secondary
#9741AC
accent
#40E7C6
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2D781A

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

Preview Lab → · Contrast checker → · Palette generator →

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