#2A8542#2A8542

#2A8542 is a mid, vivid green. Relative luminance 0.177; OKLCH L 54.7% C 0.132 H 148.6°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#2A8542
RGBrgb(42, 133, 66)
HSLhsl(136, 52%, 34%)
HSVhsv(136, 68%, 52%)
CMYKcmyk(68.4%, 0%, 50.4%, 47.8%)
CIE-LABlab(49.08, -41.95, 28.38)
CIE-LCHlch(49.08, 50.65, 145.92°)
OKLaboklab(54.69% -0.1131 0.069)
OKLCHoklch(54.69% 0.132 148.6)
XYZxyz(10.3250, 17.6596, 8.0177)
Luminance0.1766 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8542 #852A6D
analogous
#40852A #2A8542 #2A8570
triadic
#2A8542 #422A85 #85422A
tetradic
#2A8542 #2A4085 #852A6D #85702A
square
#2A8542 #2A4085 #852A6D #85702A
split-complementary
#2A8542 #702A85 #852A40
monochromatic
#0D2814 #1B562B #2A8542 #39B459 #5DCC7B

Accessibility & contrast

On white

4.63
#2A8542 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#2A8542 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2A8542
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8542#FFFFFF#000000##FFFFFF
##2A85421.004.634.534.63
#FFFFFF4.631.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#86793D
Deuteranopia (green-blind)
#7B7247
Tritanopia (blue-blind)
#048275
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #2a8542;
/* rgb */ color: rgb(42, 133, 66);
/* oklch */ color: oklch(54.7% 0.132 148.6);
Tailwind
colors: {
  custom: {
    50: '#70a978',
    500: '#2a8542',
    950: '#000000',
  },
}
SCSS
$custom: #2a8542;
$custom-light: #70a978;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8542",
  "rgb": {
    "r": 42,
    "g": 133,
    "b": 66
  },
  "hsl": {
    "h": 135.824,
    "s": 52,
    "l": 34.314
  },
  "oklch": {
    "l": 0.54688,
    "c": 0.13248,
    "h": 148.6
  },
  "luminance": 0.17661
}

Semantic roles & 50–950 ramp

primary
#2A8542
secondary
#B2599A
accent
#4CB6DB
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #2A8542

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

Preview Lab → · Contrast checker → · Palette generator →

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