#2A7B1A#2A7B1A

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

Color values

HEX#2A7B1A
RGBrgb(42, 123, 26)
HSLhsl(110, 65%, 29%)
HSVhsv(110, 79%, 48%)
CMYKcmyk(65.9%, 0%, 78.9%, 51.8%)
CIE-LABlab(45.26, -42.93, 42.73)
CIE-LCHlch(45.26, 60.57, 135.13°)
OKLaboklab(51.4% -0.1175 0.0959)
OKLCHoklch(51.4% 0.152 140.8)
XYZxyz(8.2238, 14.7319, 3.3872)
Luminance0.1473 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7B1A #6B1A7B
analogous
#5B7B1A #2A7B1A #1A7B3B
triadic
#2A7B1A #1A2A7B #7B1A2A
tetradic
#2A7B1A #1A5B7B #6B1A7B #7B3B1A
square
#2A7B1A #1A5B7B #6B1A7B #7B3B1A
split-complementary
#2A7B1A #3B1A7B #7B1A5B
monochromatic
#091905 #19480F #2A7B1A #3BAE25 #54D53A

Accessibility & contrast

On white

5.32
#2A7B1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#2A7B1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7B1A
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7B1A#FFFFFF#000000##FFFFFF
##2A7B1A1.005.323.955.32
#FFFFFF5.321.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7E6F04
Deuteranopia (green-blind)
#756925
Tritanopia (blue-blind)
#1D7769
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a7b1a;
/* rgb */ color: rgb(42, 123, 26);
/* oklch */ color: oklch(51.4% 0.152 140.8);
Tailwind
colors: {
  custom: {
    50: '#6fa25e',
    500: '#2a7b1a',
    950: '#000000',
  },
}
SCSS
$custom: #2a7b1a;
$custom-light: #6fa25e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7b1a",
  "rgb": {
    "r": 42,
    "g": 123,
    "b": 26
  },
  "hsl": {
    "h": 110.103,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.51401,
    "c": 0.15162,
    "h": 140.8
  },
  "luminance": 0.14733
}

Semantic roles & 50–950 ramp

primary
#2A7B1A
secondary
#9D42AF
accent
#40E8CC
background
#F7FAF5
surface
#EDF4E9
border
#C8CEC5
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7B1A

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

Preview Lab → · Contrast checker → · Palette generator →

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