#2A7118#2A7118

#2A7118 is a mid, vivid green. Relative luminance 0.124; OKLCH L 48.5% C 0.140 H 140.2°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#2A7118
RGBrgb(42, 113, 24)
HSLhsl(108, 65%, 27%)
HSVhsv(108, 79%, 44%)
CMYKcmyk(62.8%, 0%, 78.8%, 55.7%)
CIE-LABlab(41.79, -39.29, 40.05)
CIE-LCHlch(41.79, 56.10, 134.45°)
OKLaboklab(48.53% -0.1078 0.09)
OKLCHoklch(48.53% 0.14 140.2)
XYZxyz(7.0245, 12.3678, 2.8810)
Luminance0.1237 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7118 #5F1871
analogous
#577118 #2A7118 #187133
triadic
#2A7118 #182A71 #71182A
tetradic
#2A7118 #185771 #5F1871 #713318
square
#2A7118 #185771 #5F1871 #713318
split-complementary
#2A7118 #331871 #711857
monochromatic
#091905 #173F0D #2A7118 #3DA323 #51D330

Accessibility & contrast

On white

6.05
#2A7118 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#2A7118 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7118
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7118#FFFFFF#000000##FFFFFF
##2A71181.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#746605
Deuteranopia (green-blind)
#6C6022
Tritanopia (blue-blind)
#206D60
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2a7118;
/* rgb */ color: rgb(42, 113, 24);
/* oklch */ color: oklch(48.5% 0.140 140.2);
Tailwind
colors: {
  custom: {
    50: '#6d9a5c',
    500: '#2a7118',
    950: '#000000',
  },
}
SCSS
$custom: #2a7118;
$custom-light: #6d9a5c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7118",
  "rgb": {
    "r": 42,
    "g": 113,
    "b": 24
  },
  "hsl": {
    "h": 107.865,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.48526,
    "c": 0.1404,
    "h": 140.2
  },
  "luminance": 0.12368
}

Semantic roles & 50–950 ramp

primary
#2A7118
secondary
#913EA6
accent
#40E8C6
background
#F6F9F5
surface
#ECF2E9
border
#C7CCC5
text
#080E04
muted
#7A7E79

Preview Lab

Preview with #2A7118

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

Preview Lab → · Contrast checker → · Palette generator →

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