#2A7E1E#2A7E1E

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

Color values

HEX#2A7E1E
RGBrgb(42, 126, 30)
HSLhsl(113, 62%, 31%)
HSVhsv(113, 76%, 49%)
CMYKcmyk(66.7%, 0%, 76.2%, 50.6%)
CIE-LABlab(46.32, -43.72, 42.29)
CIE-LCHlch(46.32, 60.83, 135.95°)
OKLaboklab(52.28% -0.1194 0.0955)
OKLCHoklch(52.28% 0.153 141.3)
XYZxyz(8.6496, 15.5068, 3.7653)
Luminance0.1551 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7E1E #721E7E
analogous
#5A7E1E #2A7E1E #1E7E42
triadic
#2A7E1E #1E2A7E #7E1E2A
tetradic
#2A7E1E #1E5A7E #721E7E #7E421E
square
#2A7E1E #1E5A7E #721E7E #7E421E
split-complementary
#2A7E1E #421E7E #7E1E5A
monochromatic
#091B06 #1A4D12 #2A7E1E #3AAF2A #56D244

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A7E1E#FFFFFF#000000##FFFFFF
##2A7E1E1.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)
#81720C
Deuteranopia (green-blind)
#776B28
Tritanopia (blue-blind)
#1B7A6B
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a7e1e;
/* rgb */ color: rgb(42, 126, 30);
/* oklch */ color: oklch(52.3% 0.153 141.3);
Tailwind
colors: {
  custom: {
    50: '#70a461',
    500: '#2a7e1e',
    950: '#000000',
  },
}
SCSS
$custom: #2a7e1e;
$custom-light: #70a461;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7e1e",
  "rgb": {
    "r": 42,
    "g": 126,
    "b": 30
  },
  "hsl": {
    "h": 112.5,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.52283,
    "c": 0.15291,
    "h": 141.3
  },
  "luminance": 0.15508
}

Semantic roles & 50–950 ramp

primary
#2A7E1E
secondary
#A447B1
accent
#43E5D0
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7E1E

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

Preview Lab → · Contrast checker → · Palette generator →

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