#2A8342#2A8342

#2A8342 is a mid, vivid green. Relative luminance 0.171; OKLCH L 54.1% C 0.130 H 148.8°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#2A8342
RGBrgb(42, 131, 66)
HSLhsl(136, 51%, 34%)
HSVhsv(136, 68%, 51%)
CMYKcmyk(67.9%, 0%, 49.6%, 48.6%)
CIE-LABlab(48.41, -41.15, 27.53)
CIE-LCHlch(48.41, 49.51, 146.21°)
OKLaboklab(54.13% -0.111 0.0671)
OKLCHoklch(54.13% 0.13 148.8)
XYZxyz(10.0538, 17.1171, 7.9273)
Luminance0.1712 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8342 #832A6B
analogous
#3F832A #2A8342 #2A836F
triadic
#2A8342 #422A83 #83422A
tetradic
#2A8342 #2A3F83 #832A6B #836F2A
square
#2A8342 #2A3F83 #832A6B #836F2A
split-complementary
#2A8342 #6F2A83 #832A3F
monochromatic
#0C2613 #1B552B #2A8342 #39B159 #5DCB7A

Accessibility & contrast

On white

4.75
#2A8342 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#2A8342 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A8342
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8342#FFFFFF#000000##FFFFFF
##2A83421.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#84783D
Deuteranopia (green-blind)
#797047
Tritanopia (blue-blind)
#068074
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2a8342;
/* rgb */ color: rgb(42, 131, 66);
/* oklch */ color: oklch(54.1% 0.130 148.8);
Tailwind
colors: {
  custom: {
    50: '#6fa877',
    500: '#2a8342',
    950: '#000000',
  },
}
SCSS
$custom: #2a8342;
$custom-light: #6fa877;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8342",
  "rgb": {
    "r": 42,
    "g": 131,
    "b": 66
  },
  "hsl": {
    "h": 136.18,
    "s": 51.445,
    "l": 33.922
  },
  "oklch": {
    "l": 0.54133,
    "c": 0.12968,
    "h": 148.8
  },
  "luminance": 0.17118
}

Semantic roles & 50–950 ramp

primary
#2A8342
secondary
#B15899
accent
#4DB5DB
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #2A8342

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

Preview Lab → · Contrast checker → · Palette generator →

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