#2A781C#2A781C

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

Color values

HEX#2A781C
RGBrgb(42, 120, 28)
HSLhsl(111, 62%, 29%)
HSVhsv(111, 77%, 47%)
CMYKcmyk(65%, 0%, 76.7%, 52.9%)
CIE-LABlab(44.24, -41.65, 40.97)
CIE-LCHlch(44.24, 58.42, 135.47°)
OKLaboklab(50.56% -0.1139 0.0925)
OKLCHoklch(50.56% 0.147 140.9)
XYZxyz(7.8805, 14.0083, 3.3870)
Luminance0.1401 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A781C #6A1C78
analogous
#58781C #2A781C #1C783C
triadic
#2A781C #1C2A78 #781C2A
tetradic
#2A781C #1C5878 #6A1C78 #783C1C
square
#2A781C #1C5878 #6A1C78 #783C1C
split-complementary
#2A781C #3C1C78 #781C58
monochromatic
#091906 #194610 #2A781C #3BAA28 #53D23D

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A781C#FFFFFF#000000##FFFFFF
##2A781C1.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)
#7B6D0A
Deuteranopia (green-blind)
#726626
Tritanopia (blue-blind)
#1D7466
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2a781c;
/* rgb */ color: rgb(42, 120, 28);
/* oklch */ color: oklch(50.6% 0.147 140.9);
Tailwind
colors: {
  custom: {
    50: '#6ea05f',
    500: '#2a781c',
    950: '#000000',
  },
}
SCSS
$custom: #2a781c;
$custom-light: #6ea05f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a781c",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 28
  },
  "hsl": {
    "h": 110.87,
    "s": 62.162,
    "l": 29.02
  },
  "oklch": {
    "l": 0.50561,
    "c": 0.14673,
    "h": 140.9
  },
  "luminance": 0.14009
}

Semantic roles & 50–950 ramp

primary
#2A781C
secondary
#9C44AC
accent
#43E5CC
background
#F7F9F5
surface
#EDF2EA
border
#C8CCC6
text
#080F05
muted
#7B7E79

Preview Lab

Preview with #2A781C

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

Preview Lab → · Contrast checker → · Palette generator →

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