#2A8538#2A8538

#2A8538 is a mid, vivid green. Relative luminance 0.176; OKLCH L 54.5% C 0.142 H 145.9°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#2A8538
RGBrgb(42, 133, 56)
HSLhsl(129, 52%, 34%)
HSVhsv(129, 68%, 52%)
CMYKcmyk(68.4%, 0%, 57.9%, 47.8%)
CIE-LABlab(48.95, -43.47, 33.42)
CIE-LCHlch(48.95, 54.83, 142.45°)
OKLaboklab(54.54% -0.1174 0.0796)
OKLCHoklch(54.54% 0.142 145.9)
XYZxyz(10.0555, 17.5518, 6.5985)
Luminance0.1755 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8538 #852A77
analogous
#4A852A #2A8538 #2A8566
triadic
#2A8538 #382A85 #85382A
tetradic
#2A8538 #2A4A85 #852A77 #85662A
square
#2A8538 #2A4A85 #852A77 #85662A
split-complementary
#2A8538 #662A85 #852A4A
monochromatic
#0D2811 #1B5624 #2A8538 #39B44C #5DCC6E

Accessibility & contrast

On white

4.66
#2A8538 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#2A8538 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #2A8538
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8538#FFFFFF#000000##FFFFFF
##2A85381.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#877931
Deuteranopia (green-blind)
#7C713E
Tritanopia (blue-blind)
#0D8274
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #2a8538;
/* rgb */ color: rgb(42, 133, 56);
/* oklch */ color: oklch(54.5% 0.142 145.9);
Tailwind
colors: {
  custom: {
    50: '#70a971',
    500: '#2a8538',
    950: '#000000',
  },
}
SCSS
$custom: #2a8538;
$custom-light: #70a971;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8538",
  "rgb": {
    "r": 42,
    "g": 133,
    "b": 56
  },
  "hsl": {
    "h": 129.231,
    "s": 52,
    "l": 34.314
  },
  "oklch": {
    "l": 0.54536,
    "c": 0.14183,
    "h": 145.9
  },
  "luminance": 0.17553
}

Semantic roles & 50–950 ramp

primary
#2A8538
secondary
#B259A4
accent
#4CC5DB
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#081008
muted
#7B7F7B

Preview Lab

Preview with #2A8538

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

Preview Lab → · Contrast checker → · Palette generator →

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