#2A7945#2A7945

#2A7945 is a mid, moderate green. Relative luminance 0.146; OKLCH L 51.4% C 0.112 H 151.5°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#2A7945
RGBrgb(42, 121, 69)
HSLhsl(141, 48%, 32%)
HSVhsv(141, 65%, 47%)
CMYKcmyk(65.3%, 0%, 43%, 52.5%)
CIE-LABlab(45.08, -36.50, 21.61)
CIE-LCHlch(45.08, 42.42, 149.37°)
OKLaboklab(51.4% -0.0986 0.0536)
OKLCHoklch(51.4% 0.112 151.5)
XYZxyz(8.8657, 14.5958, 7.9791)
Luminance0.1460 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7945 #792A5E
analogous
#37792A #2A7945 #2A796D
triadic
#2A7945 #452A79 #79452A
tetradic
#2A7945 #2A3779 #792A5E #796D2A
square
#2A7945 #2A3779 #792A5E #796D2A
split-complementary
#2A7945 #6D2A79 #792A37
monochromatic
#0A1E11 #1A4C2B #2A7945 #3AA65F #58C57D

Accessibility & contrast

On white

5.36
#2A7945 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#2A7945 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7945
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7945#FFFFFF#000000##FFFFFF
##2A79451.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796F41
Deuteranopia (green-blind)
#6F6848
Tritanopia (blue-blind)
#0C776C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a7945;
/* rgb */ color: rgb(42, 121, 69);
/* oklch */ color: oklch(51.4% 0.112 151.5);
Tailwind
colors: {
  custom: {
    50: '#6da079',
    500: '#2a7945',
    950: '#000000',
  },
}
SCSS
$custom: #2a7945;
$custom-light: #6da079;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7945",
  "rgb": {
    "r": 42,
    "g": 121,
    "b": 69
  },
  "hsl": {
    "h": 140.506,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.51404,
    "c": 0.11222,
    "h": 151.5
  },
  "luminance": 0.14597
}

Semantic roles & 50–950 ramp

primary
#2A7945
secondary
#AB548D
accent
#50A9D8
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#080F09
muted
#7B7E7B

Preview Lab

Preview with #2A7945

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

Preview Lab → · Contrast checker → · Palette generator →

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