#2A7948#2A7948

#2A7948 is a mid, moderate green. Relative luminance 0.146; OKLCH L 51.5% C 0.109 H 152.9°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#2A7948
RGBrgb(42, 121, 72)
HSLhsl(143, 48%, 32%)
HSVhsv(143, 65%, 47%)
CMYKcmyk(65.3%, 0%, 40.5%, 52.5%)
CIE-LABlab(45.13, -35.92, 19.98)
CIE-LCHlch(45.13, 41.10, 150.92°)
OKLaboklab(51.47% -0.0971 0.0498)
OKLCHoklch(51.47% 0.109 152.9)
XYZxyz(8.9612, 14.6340, 8.4820)
Luminance0.1464 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7948 #792A5B
analogous
#34792A #2A7948 #2A7970
triadic
#2A7948 #482A79 #79482A
tetradic
#2A7948 #2A3479 #792A5B #79702A
square
#2A7948 #2A3479 #792A5B #79702A
split-complementary
#2A7948 #702A79 #792A34
monochromatic
#0A1E12 #1A4C2D #2A7948 #3AA663 #58C582

Accessibility & contrast

On white

5.35
#2A7948 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#2A7948 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7948
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7948#FFFFFF#000000##FFFFFF
##2A79481.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796F45
Deuteranopia (green-blind)
#6F684B
Tritanopia (blue-blind)
#09776D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a7948;
/* rgb */ color: rgb(42, 121, 72);
/* oklch */ color: oklch(51.5% 0.109 152.9);
Tailwind
colors: {
  custom: {
    50: '#6da07b',
    500: '#2a7948',
    950: '#000000',
  },
}
SCSS
$custom: #2a7948;
$custom-light: #6da07b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7948",
  "rgb": {
    "r": 42,
    "g": 121,
    "b": 72
  },
  "hsl": {
    "h": 142.785,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.51465,
    "c": 0.10917,
    "h": 152.9
  },
  "luminance": 0.14635
}

Semantic roles & 50–950 ramp

primary
#2A7948
secondary
#AB548A
accent
#50A4D8
background
#F6F9F7
surface
#ECF2EE
border
#C7CCC9
text
#080F09
muted
#7B7E7B

Preview Lab

Preview with #2A7948

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

Preview Lab → · Contrast checker → · Palette generator →

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