#2A781B#2A781B

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

Color values

HEX#2A781B
RGBrgb(42, 120, 27)
HSLhsl(110, 63%, 29%)
HSVhsv(110, 78%, 47%)
CMYKcmyk(65%, 0%, 77.5%, 52.9%)
CIE-LABlab(44.24, -41.73, 41.35)
CIE-LCHlch(44.24, 58.74, 135.26°)
OKLaboklab(50.55% -0.1142 0.0931)
OKLCHoklch(50.55% 0.147 140.8)
XYZxyz(7.8688, 14.0036, 3.3250)
Luminance0.1400 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A781B #691B78
analogous
#59781B #2A781B #1B783B
triadic
#2A781B #1B2A78 #781B2A
tetradic
#2A781B #1B5978 #691B78 #783B1B
square
#2A781B #1B5978 #691B78 #783B1B
split-complementary
#2A781B #3B1B78 #781B59
monochromatic
#091906 #194610 #2A781B #3BAA26 #53D33B

Accessibility & contrast

On white

5.53
#2A781B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A781B
5.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A781B#FFFFFF#000000##FFFFFF
##2A781B1.005.533.805.53
#FFFFFF5.531.0021.001.00
#0000003.8021.001.0021.00
##FFFFFF5.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a781b;
/* rgb */ color: rgb(42, 120, 27);
/* oklch */ color: oklch(50.6% 0.147 140.8);
Tailwind
colors: {
  custom: {
    50: '#6fa05e',
    500: '#2a781b',
    950: '#000000',
  },
}
SCSS
$custom: #2a781b;
$custom-light: #6fa05e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a781b",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 27
  },
  "hsl": {
    "h": 110.323,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.50553,
    "c": 0.14735,
    "h": 140.8
  },
  "luminance": 0.14004
}

Semantic roles & 50–950 ramp

primary
#2A781B
secondary
#9B43AC
accent
#41E6CC
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2A781B

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

Preview Lab → · Contrast checker → · Palette generator →

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