#2A7A1E#2A7A1E

#2A7A1E is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.1% C 0.148 H 141.2°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#2A7A1E
RGBrgb(42, 122, 30)
HSLhsl(112, 61%, 30%)
HSVhsv(112, 75%, 48%)
CMYKcmyk(65.6%, 0%, 75.4%, 52.2%)
CIE-LABlab(44.95, -42.24, 40.90)
CIE-LCHlch(44.95, 58.80, 135.92°)
OKLaboklab(51.15% -0.1154 0.0926)
OKLCHoklch(51.15% 0.148 141.2)
XYZxyz(8.1483, 14.5043, 3.5982)
Luminance0.1451 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7A1E #6E1E7A
analogous
#587A1E #2A7A1E #1E7A40
triadic
#2A7A1E #1E2A7A #7A1E2A
tetradic
#2A7A1E #1E587A #6E1E7A #7A401E
square
#2A7A1E #1E587A #6E1E7A #7A401E
split-complementary
#2A7A1E #401E7A #7A1E58
monochromatic
#081906 #194912 #2A7A1E #3BAB2A #55D042

Accessibility & contrast

On white

5.38
#2A7A1E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#2A7A1E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7A1E
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7A1E#FFFFFF#000000##FFFFFF
##2A7A1E1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7D6E0D
Deuteranopia (green-blind)
#746827
Tritanopia (blue-blind)
#1C7668
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2a7a1e;
/* rgb */ color: rgb(42, 122, 30);
/* oklch */ color: oklch(51.1% 0.148 141.2);
Tailwind
colors: {
  custom: {
    50: '#6fa160',
    500: '#2a7a1e',
    950: '#000000',
  },
}
SCSS
$custom: #2a7a1e;
$custom-light: #6fa160;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7a1e",
  "rgb": {
    "r": 42,
    "g": 122,
    "b": 30
  },
  "hsl": {
    "h": 112.174,
    "s": 60.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.51147,
    "c": 0.14796,
    "h": 141.2
  },
  "luminance": 0.14505
}

Semantic roles & 50–950 ramp

primary
#2A7A1E
secondary
#A046AE
accent
#44E4CF
background
#F7FAF5
surface
#EDF3EA
border
#C8CDC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7A1E

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

Preview Lab → · Contrast checker → · Palette generator →

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