#2A7E1A#2A7E1A

#2A7E1A is a mid, vivid green. Relative luminance 0.155; OKLCH L 52.3% C 0.155 H 140.9°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#2A7E1A
RGBrgb(42, 126, 26)
HSLhsl(110, 66%, 30%)
HSVhsv(110, 79%, 49%)
CMYKcmyk(66.7%, 0%, 79.4%, 50.6%)
CIE-LABlab(46.30, -44.03, 43.73)
CIE-LCHlch(46.30, 62.06, 135.19°)
OKLaboklab(52.25% -0.1205 0.098)
OKLCHoklch(52.25% 0.155 140.9)
XYZxyz(8.6017, 15.4877, 3.5132)
Luminance0.1549 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7E1A #6E1A7E
analogous
#5C7E1A #2A7E1A #1A7E3C
triadic
#2A7E1A #1A2A7E #7E1A2A
tetradic
#2A7E1A #1A5C7E #6E1A7E #7E3C1A
square
#2A7E1A #1A5C7E #6E1A7E #7E3C1A
split-complementary
#2A7E1A #3C1A7E #7E1A5C
monochromatic
#081905 #194B10 #2A7E1A #3BB124 #55D73C

Accessibility & contrast

On white

5.12
#2A7E1A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#2A7E1A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7E1A
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7E1A#FFFFFF#000000##FFFFFF
##2A7E1A1.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#817202
Deuteranopia (green-blind)
#776B25
Tritanopia (blue-blind)
#1B7A6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a7e1a;
/* rgb */ color: rgb(42, 126, 26);
/* oklch */ color: oklch(52.3% 0.155 140.9);
Tailwind
colors: {
  custom: {
    50: '#70a45f',
    500: '#2a7e1a',
    950: '#000000',
  },
}
SCSS
$custom: #2a7e1a;
$custom-light: #70a45f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7e1a",
  "rgb": {
    "r": 42,
    "g": 126,
    "b": 26
  },
  "hsl": {
    "h": 110.4,
    "s": 65.789,
    "l": 29.804
  },
  "oklch": {
    "l": 0.52254,
    "c": 0.15526,
    "h": 140.9
  },
  "luminance": 0.15489
}

Semantic roles & 50–950 ramp

primary
#2A7E1A
secondary
#A042B2
accent
#3FE9CE
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7E1A

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

Preview Lab → · Contrast checker → · Palette generator →

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