#2A7B1E#2A7B1E

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

Color values

HEX#2A7B1E
RGBrgb(42, 123, 30)
HSLhsl(112, 61%, 30%)
HSVhsv(112, 76%, 48%)
CMYKcmyk(65.9%, 0%, 75.6%, 51.8%)
CIE-LABlab(45.29, -42.61, 41.25)
CIE-LCHlch(45.29, 59.31, 135.93°)
OKLaboklab(51.43% -0.1164 0.0934)
OKLCHoklch(51.43% 0.149 141.3)
XYZxyz(8.2717, 14.7511, 3.6394)
Luminance0.1475 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7B1E #6F1E7B
analogous
#597B1E #2A7B1E #1E7B40
triadic
#2A7B1E #1E2A7B #7B1E2A
tetradic
#2A7B1E #1E597B #6F1E7B #7B401E
square
#2A7B1E #1E597B #6F1E7B #7B401E
split-complementary
#2A7B1E #401E7B #7B1E59
monochromatic
#081906 #194A12 #2A7B1E #3BAC2A #55D142

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A7B1E#FFFFFF#000000##FFFFFF
##2A7B1E1.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)
#7E6F0D
Deuteranopia (green-blind)
#746928
Tritanopia (blue-blind)
#1C7769
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a7b1e;
/* rgb */ color: rgb(42, 123, 30);
/* oklch */ color: oklch(51.4% 0.149 141.3);
Tailwind
colors: {
  custom: {
    50: '#6fa260',
    500: '#2a7b1e',
    950: '#000000',
  },
}
SCSS
$custom: #2a7b1e;
$custom-light: #6fa260;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7b1e",
  "rgb": {
    "r": 42,
    "g": 123,
    "b": 30
  },
  "hsl": {
    "h": 112.258,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.51431,
    "c": 0.14921,
    "h": 141.3
  },
  "luminance": 0.14752
}

Semantic roles & 50–950 ramp

primary
#2A7B1E
secondary
#A146AE
accent
#44E4CF
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7B1E

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

Preview Lab → · Contrast checker → · Palette generator →

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