#2A8B42#2A8B42

#2A8B42 is a mid, vivid green. Relative luminance 0.194; OKLCH L 56.4% C 0.141 H 148.0°. Best body text is #000000 at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#2A8B42
RGBrgb(42, 139, 66)
HSLhsl(135, 54%, 35%)
HSVhsv(135, 70%, 55%)
CMYKcmyk(69.8%, 0%, 52.5%, 45.5%)
CIE-LABlab(51.09, -44.29, 30.88)
CIE-LCHlch(51.09, 53.99, 145.11°)
OKLaboklab(56.35% -0.1194 0.0746)
OKLCHoklch(56.35% 0.141 148)
XYZxyz(11.1700, 19.3496, 8.2994)
Luminance0.1935 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8B42 #8B2A73
analogous
#438B2A #2A8B42 #2A8B72
triadic
#2A8B42 #422A8B #8B422A
tetradic
#2A8B42 #2A438B #8B2A73 #8B722A
square
#2A8B42 #2A438B #8B2A73 #8B722A
split-complementary
#2A8B42 #722A8B #8B2A43
monochromatic
#0E2D15 #1C5C2C #2A8B42 #38BA58 #60CF7C

Accessibility & contrast

On white

4.31
#2A8B42 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.87
#2A8B42 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8B42
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8B42#FFFFFF#000000##000000
##2A8B421.004.314.874.87
#FFFFFF4.311.0021.0021.00
#0000004.8721.001.001.00
##0000004.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#8C7F3C
Deuteranopia (green-blind)
#817647
Tritanopia (blue-blind)
#00887A
Achromatopsia (no color)
#7A7A7A

Design tokens & code

CSS
--color: #2a8b42;
/* rgb */ color: rgb(42, 139, 66);
/* oklch */ color: oklch(56.4% 0.141 148.0);
Tailwind
colors: {
  custom: {
    50: '#71ae78',
    500: '#2a8b42',
    950: '#000000',
  },
}
SCSS
$custom: #2a8b42;
$custom-light: #71ae78;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8b42",
  "rgb": {
    "r": 42,
    "g": 139,
    "b": 66
  },
  "hsl": {
    "h": 134.845,
    "s": 53.591,
    "l": 35.49
  },
  "oklch": {
    "l": 0.5635,
    "c": 0.14077,
    "h": 148
  },
  "luminance": 0.19351
}

Semantic roles & 50–950 ramp

primary
#2A8B42
secondary
#B55C9F
accent
#4BB9DD
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#091009
muted
#7B7F7B

Preview Lab

Preview with #2A8B42

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

Preview Lab → · Contrast checker → · Palette generator →

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