#2A8945#2A8945

#2A8945 is a mid, vivid green. Relative luminance 0.188; OKLCH L 55.8% C 0.135 H 149.1°. Best body text is #000000 at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#2A8945
RGBrgb(42, 137, 69)
HSLhsl(137, 53%, 35%)
HSVhsv(137, 69%, 54%)
CMYKcmyk(69.3%, 0%, 49.6%, 46.3%)
CIE-LABlab(50.47, -43.03, 28.52)
CIE-LCHlch(50.47, 51.62, 146.47°)
OKLaboklab(55.85% -0.1159 0.0694)
OKLCHoklch(55.85% 0.135 149.1)
XYZxyz(10.9738, 18.8121, 8.6818)
Luminance0.1881 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8945 #892A6E
analogous
#3E892A #2A8945 #2A8975
triadic
#2A8945 #452A89 #89452A
tetradic
#2A8945 #2A3E89 #892A6E #89752A
square
#2A8945 #2A3E89 #892A6E #89752A
split-complementary
#2A8945 #752A89 #892A3E
monochromatic
#0D2B16 #1C5A2D #2A8945 #38B85D #5FCE7F

Accessibility & contrast

On white

4.41
#2A8945 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.76
#2A8945 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8945
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8945#FFFFFF#000000##000000
##2A89451.004.414.764.76
#FFFFFF4.411.0021.0021.00
#0000004.7621.001.001.00
##0000004.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7D3F
Deuteranopia (green-blind)
#7E754A
Tritanopia (blue-blind)
#008679
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #2a8945;
/* rgb */ color: rgb(42, 137, 69);
/* oklch */ color: oklch(55.8% 0.135 149.1);
Tailwind
colors: {
  custom: {
    50: '#70ac7a',
    500: '#2a8945',
    950: '#000000',
  },
}
SCSS
$custom: #2a8945;
$custom-light: #70ac7a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8945",
  "rgb": {
    "r": 42,
    "g": 137,
    "b": 69
  },
  "hsl": {
    "h": 137.053,
    "s": 53.073,
    "l": 35.098
  },
  "oklch": {
    "l": 0.55846,
    "c": 0.13515,
    "h": 149.1
  },
  "luminance": 0.18813
}

Semantic roles & 50–950 ramp

primary
#2A8945
secondary
#B45B9B
accent
#4BB3DC
background
#F7FAF7
surface
#EDF4ED
border
#C8CEC8
text
#081009
muted
#7B7F7B

Preview Lab

Preview with #2A8945

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

Preview Lab → · Contrast checker → · Palette generator →

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