#2A7C1E#2A7C1E

#2A7C1E is a mid, vivid green. Relative luminance 0.150; OKLCH L 51.7% C 0.150 H 141.3°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#2A7C1E
RGBrgb(42, 124, 30)
HSLhsl(112, 61%, 30%)
HSVhsv(112, 76%, 49%)
CMYKcmyk(66.1%, 0%, 75.8%, 51.4%)
CIE-LABlab(45.63, -42.98, 41.60)
CIE-LCHlch(45.63, 59.82, 135.94°)
OKLaboklab(51.72% -0.1174 0.0941)
OKLCHoklch(51.72% 0.15 141.3)
XYZxyz(8.3964, 15.0005, 3.6809)
Luminance0.1500 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7C1E #701E7C
analogous
#597C1E #2A7C1E #1E7C41
triadic
#2A7C1E #1E2A7C #7C1E2A
tetradic
#2A7C1E #1E597C #701E7C #7C411E
square
#2A7C1E #1E597C #701E7C #7C411E
split-complementary
#2A7C1E #411E7C #7C1E59
monochromatic
#091906 #194B12 #2A7C1E #3BAD2A #55D143

Accessibility & contrast

On white

5.25
#2A7C1E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#2A7C1E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7C1E
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7C1E#FFFFFF#000000##FFFFFF
##2A7C1E1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7F700D
Deuteranopia (green-blind)
#756928
Tritanopia (blue-blind)
#1B786A
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2a7c1e;
/* rgb */ color: rgb(42, 124, 30);
/* oklch */ color: oklch(51.7% 0.150 141.3);
Tailwind
colors: {
  custom: {
    50: '#6fa360',
    500: '#2a7c1e',
    950: '#000000',
  },
}
SCSS
$custom: #2a7c1e;
$custom-light: #6fa360;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7c1e",
  "rgb": {
    "r": 42,
    "g": 124,
    "b": 30
  },
  "hsl": {
    "h": 112.34,
    "s": 61.039,
    "l": 30.196
  },
  "oklch": {
    "l": 0.51715,
    "c": 0.15045,
    "h": 141.3
  },
  "luminance": 0.15001
}

Semantic roles & 50–950 ramp

primary
#2A7C1E
secondary
#A246AF
accent
#44E4D0
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7C1E

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

Preview Lab → · Contrast checker → · Palette generator →

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