#2A7112#2A7112

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

Color values

HEX#2A7112
RGBrgb(42, 113, 18)
HSLhsl(105, 73%, 26%)
HSVhsv(105, 84%, 44%)
CMYKcmyk(62.8%, 0%, 84.1%, 55.7%)
CIE-LABlab(41.76, -39.69, 42.08)
CIE-LCHlch(41.76, 57.85, 133.33°)
OKLaboklab(48.49% -0.1092 0.0933)
OKLCHoklch(48.49% 0.144 139.5)
XYZxyz(6.9689, 12.3455, 2.5878)
Luminance0.1235 (WCAG relative)
Temperaturewarm
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7112 #591271
analogous
#597112 #2A7112 #127129
triadic
#2A7112 #122A71 #71122A
tetradic
#2A7112 #125971 #591271 #712912
square
#2A7112 #125971 #591271 #712912
split-complementary
#2A7112 #291271 #711259
monochromatic
#0A1A04 #163C0A #2A7112 #3EA61A #51DB23

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A7112#FFFFFF#000000##FFFFFF
##2A71121.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)
#746600
Deuteranopia (green-blind)
#6C601E
Tritanopia (blue-blind)
#216D60
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2a7112;
/* rgb */ color: rgb(42, 113, 18);
/* oklch */ color: oklch(48.5% 0.144 139.5);
Tailwind
colors: {
  custom: {
    50: '#6e9a59',
    500: '#2a7112',
    950: '#000000',
  },
}
SCSS
$custom: #2a7112;
$custom-light: #6e9a59;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7112",
  "rgb": {
    "r": 42,
    "g": 113,
    "b": 18
  },
  "hsl": {
    "h": 104.842,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.48486,
    "c": 0.14364,
    "h": 139.5
  },
  "luminance": 0.12346
}

Semantic roles & 50–950 ramp

primary
#2A7112
secondary
#8B37A8
accent
#39EFC1
background
#F7F9F5
surface
#EDF2E9
border
#C8CCC5
text
#080E04
muted
#7B7E79

Preview Lab

Preview with #2A7112

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

Preview Lab → · Contrast checker → · Palette generator →

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