#2A9845#2A9845

#2A9845 is a mid, vivid green. Relative luminance 0.234; OKLCH L 60.0% C 0.155 H 147.6°. Best body text is #000000 at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#2A9845
RGBrgb(42, 152, 69)
HSLhsl(135, 57%, 38%)
HSVhsv(135, 72%, 60%)
CMYKcmyk(72.4%, 0%, 54.6%, 40.4%)
CIE-LABlab(55.46, -48.71, 34.68)
CIE-LCHlch(55.46, 59.80, 144.55°)
OKLaboklab(59.97% -0.1312 0.0832)
OKLCHoklch(59.97% 0.155 147.6)
XYZxyz(13.2563, 23.3769, 9.4426)
Luminance0.2338 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A9845 #982A7D
analogous
#46982A #2A9845 #2A987C
triadic
#2A9845 #452A98 #98452A
tetradic
#2A9845 #2A4698 #982A7D #987C2A
square
#2A9845 #2A4698 #982A7D #987C2A
split-complementary
#2A9845 #7C2A98 #982A46
monochromatic
#103819 #1D682F #2A9845 #37C85B #67D582

Accessibility & contrast

On white

3.70
#2A9845 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.68
#2A9845 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A9845
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A9845#FFFFFF#000000##000000
##2A98451.003.705.685.68
#FFFFFF3.701.0021.0021.00
#0000005.6821.001.001.00
##0000005.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#9A8A3D
Deuteranopia (green-blind)
#8D814B
Tritanopia (blue-blind)
#009585
Achromatopsia (no color)
#858585

Design tokens & code

CSS
--color: #2a9845;
/* rgb */ color: rgb(42, 152, 69);
/* oklch */ color: oklch(60.0% 0.155 147.6);
Tailwind
colors: {
  custom: {
    50: '#74b77b',
    500: '#2a9845',
    950: '#000000',
  },
}
SCSS
$custom: #2a9845;
$custom-light: #74b77b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a9845",
  "rgb": {
    "r": 42,
    "g": 152,
    "b": 69
  },
  "hsl": {
    "h": 134.727,
    "s": 56.701,
    "l": 38.039
  },
  "oklch": {
    "l": 0.59971,
    "c": 0.15537,
    "h": 147.6
  },
  "luminance": 0.23378
}

Semantic roles & 50–950 ramp

primary
#2A9845
secondary
#BB62A6
accent
#48BBE0
background
#F7FBF7
surface
#EEF6EE
border
#C9D0C9
text
#091109
muted
#7B807B

Preview Lab

Preview with #2A9845

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

Preview Lab → · Contrast checker → · Palette generator →

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