#2A8947#2A8947

#2A8947 is a mid, vivid green. Relative luminance 0.188; OKLCH L 55.9% C 0.133 H 149.7°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#2A8947
RGBrgb(42, 137, 71)
HSLhsl(138, 53%, 35%)
HSVhsv(138, 69%, 54%)
CMYKcmyk(69.3%, 0%, 48.2%, 46.3%)
CIE-LABlab(50.50, -42.69, 27.48)
CIE-LCHlch(50.50, 50.77, 147.23°)
OKLaboklab(55.88% -0.115 0.0672)
OKLCHoklch(55.88% 0.133 149.7)
XYZxyz(11.0370, 18.8373, 9.0143)
Luminance0.1884 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8947 #892A6C
analogous
#3C892A #2A8947 #2A8977
triadic
#2A8947 #472A89 #89472A
tetradic
#2A8947 #2A3C89 #892A6C #89772A
square
#2A8947 #2A3C89 #892A6C #89772A
split-complementary
#2A8947 #772A89 #892A3C
monochromatic
#0D2B16 #1C5A2F #2A8947 #38B85F #5FCE81

Accessibility & contrast

On white

4.40
#2A8947 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#2A8947 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8947
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8947#FFFFFF#000000##000000
##2A89471.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7D42
Deuteranopia (green-blind)
#7E754C
Tritanopia (blue-blind)
#008679
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2a8947;
/* rgb */ color: rgb(42, 137, 71);
/* oklch */ color: oklch(55.9% 0.133 149.7);
Tailwind
colors: {
  custom: {
    50: '#70ac7b',
    500: '#2a8947',
    950: '#000000',
  },
}
SCSS
$custom: #2a8947;
$custom-light: #70ac7b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8947",
  "rgb": {
    "r": 42,
    "g": 137,
    "b": 71
  },
  "hsl": {
    "h": 138.316,
    "s": 53.073,
    "l": 35.098
  },
  "oklch": {
    "l": 0.55881,
    "c": 0.13322,
    "h": 149.7
  },
  "luminance": 0.18838
}

Semantic roles & 50–950 ramp

primary
#2A8947
secondary
#B45B99
accent
#4BB0DC
background
#F7FAF7
surface
#EDF4EE
border
#C8CEC9
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #2A8947

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

Preview Lab → · Contrast checker → · Palette generator →

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