#2A9540#2A9540

#2A9540 is a mid, vivid green. Relative luminance 0.224; OKLCH L 59.1% C 0.156 H 146.7°. Best body text is #000000 at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#2A9540
RGBrgb(42, 149, 64)
HSLhsl(132, 56%, 37%)
HSVhsv(132, 72%, 58%)
CMYKcmyk(71.8%, 0%, 57%, 41.6%)
CIE-LABlab(54.40, -48.33, 35.91)
CIE-LCHlch(54.40, 60.21, 143.39°)
OKLaboklab(59.08% -0.1303 0.0856)
OKLCHoklch(59.08% 0.156 146.7)
XYZxyz(12.6268, 22.3559, 8.4992)
Luminance0.2236 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A9540 #952A7F
analogous
#4A952A #2A9540 #2A9575
triadic
#2A9540 #402A95 #95402A
tetradic
#2A9540 #2A4A95 #952A7F #95752A
square
#2A9540 #2A4A95 #952A7F #95752A
split-complementary
#2A9540 #752A95 #952A4A
monochromatic
#0F3617 #1D652B #2A9540 #37C555 #66D47C

Accessibility & contrast

On white

3.84
#2A9540 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.47
#2A9540 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A9540
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A9540#FFFFFF#000000##000000
##2A95401.003.845.475.47
#FFFFFF3.841.0021.0021.00
#0000005.4721.001.001.00
##0000005.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#978738
Deuteranopia (green-blind)
#8A7F47
Tritanopia (blue-blind)
#009282
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #2a9540;
/* rgb */ color: rgb(42, 149, 64);
/* oklch */ color: oklch(59.1% 0.156 146.7);
Tailwind
colors: {
  custom: {
    50: '#73b577',
    500: '#2a9540',
    950: '#000000',
  },
}
SCSS
$custom: #2a9540;
$custom-light: #73b577;
$custom-dark: #000000;
JSON
{
  "hex": "#2a9540",
  "rgb": {
    "r": 42,
    "g": 149,
    "b": 64
  },
  "hsl": {
    "h": 132.336,
    "s": 56.021,
    "l": 37.451
  },
  "oklch": {
    "l": 0.59078,
    "c": 0.1559,
    "h": 146.7
  },
  "luminance": 0.22357
}

Semantic roles & 50–950 ramp

primary
#2A9540
secondary
#BA61A8
accent
#48C0DF
background
#F7FBF7
surface
#EDF6ED
border
#C8D0C8
text
#091109
muted
#7B807B

Preview Lab

Preview with #2A9540

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

Preview Lab → · Contrast checker → · Palette generator →

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