#2A7D1E#2A7D1E

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

Color values

HEX#2A7D1E
RGBrgb(42, 125, 30)
HSLhsl(112, 61%, 30%)
HSVhsv(112, 76%, 49%)
CMYKcmyk(66.4%, 0%, 76%, 51%)
CIE-LABlab(45.98, -43.35, 41.94)
CIE-LCHlch(45.98, 60.32, 135.95°)
OKLaboklab(52% -0.1184 0.0948)
OKLCHoklch(52% 0.152 141.3)
XYZxyz(8.5224, 15.2524, 3.7229)
Luminance0.1525 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7D1E #711E7D
analogous
#597D1E #2A7D1E #1E7D41
triadic
#2A7D1E #1E2A7D #7D1E2A
tetradic
#2A7D1E #1E597D #711E7D #7D411E
square
#2A7D1E #1E597D #711E7D #7D411E
split-complementary
#2A7D1E #411E7D #7D1E59
monochromatic
#091A06 #194C12 #2A7D1E #3BAE2A #55D243

Accessibility & contrast

On white

5.18
#2A7D1E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#2A7D1E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7D1E
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7D1E#FFFFFF#000000##FFFFFF
##2A7D1E1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80710C
Deuteranopia (green-blind)
#766A28
Tritanopia (blue-blind)
#1B796B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2a7d1e;
/* rgb */ color: rgb(42, 125, 30);
/* oklch */ color: oklch(52.0% 0.152 141.3);
Tailwind
colors: {
  custom: {
    50: '#6fa361',
    500: '#2a7d1e',
    950: '#000000',
  },
}
SCSS
$custom: #2a7d1e;
$custom-light: #6fa361;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7d1e",
  "rgb": {
    "r": 42,
    "g": 125,
    "b": 30
  },
  "hsl": {
    "h": 112.421,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.51999,
    "c": 0.15168,
    "h": 141.3
  },
  "luminance": 0.15253
}

Semantic roles & 50–950 ramp

primary
#2A7D1E
secondary
#A346B0
accent
#43E4D0
background
#F7FAF5
surface
#EDF4EA
border
#C8CEC6
text
#080F05
muted
#7B7F79

Preview Lab

Preview with #2A7D1E

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

Preview Lab → · Contrast checker → · Palette generator →

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