#2A781F#2A781F

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

Color values

HEX#2A781F
RGBrgb(42, 120, 31)
HSLhsl(113, 59%, 30%)
HSVhsv(113, 74%, 47%)
CMYKcmyk(65%, 0%, 74.2%, 52.9%)
CIE-LABlab(44.27, -41.40, 39.80)
CIE-LCHlch(44.27, 57.43, 136.12°)
OKLaboklab(50.59% -0.1131 0.0905)
OKLCHoklch(50.59% 0.145 141.3)
XYZxyz(7.9182, 14.0233, 3.5856)
Luminance0.1402 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A781F #6D1F78
analogous
#57781F #2A781F #1F7841
triadic
#2A781F #1F2A78 #781F2A
tetradic
#2A781F #1F5778 #6D1F78 #78411F
square
#2A781F #1F5778 #6D1F78 #78411F
split-complementary
#2A781F #411F78 #781F57
monochromatic
#091806 #194712 #2A781F #3BA92C #54CE43

Accessibility & contrast

On white

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

On black

3.80
#2A781F on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2A781F#FFFFFF#000000##FFFFFF
##2A781F1.005.523.805.52
#FFFFFF5.521.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a781f;
/* rgb */ color: rgb(42, 120, 31);
/* oklch */ color: oklch(50.6% 0.145 141.3);
Tailwind
colors: {
  custom: {
    50: '#6ea060',
    500: '#2a781f',
    950: '#000000',
  },
}
SCSS
$custom: #2a781f;
$custom-light: #6ea060;
$custom-dark: #000000;
JSON
{
  "hex": "#2a781f",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 31
  },
  "hsl": {
    "h": 112.584,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.50585,
    "c": 0.14479,
    "h": 141.3
  },
  "luminance": 0.14024
}

Semantic roles & 50–950 ramp

primary
#2A781F
secondary
#9F47AB
accent
#46E2CF
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2A781F

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

Preview Lab → · Contrast checker → · Palette generator →

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