#2A7841#2A7841

#2A7841 is a mid, moderate green. Relative luminance 0.143; OKLCH L 51.0% C 0.115 H 150.0°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#2A7841
RGBrgb(42, 120, 65)
HSLhsl(138, 48%, 32%)
HSVhsv(138, 65%, 47%)
CMYKcmyk(65%, 0%, 45.8%, 52.9%)
CIE-LABlab(44.67, -36.82, 23.33)
CIE-LCHlch(44.67, 43.59, 147.64°)
OKLaboklab(51.05% -0.0994 0.0574)
OKLCHoklch(51.05% 0.115 150)
XYZxyz(8.6248, 14.3060, 7.3068)
Luminance0.1431 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7841 #782A61
analogous
#3A782A #2A7841 #2A7868
triadic
#2A7841 #412A78 #78412A
tetradic
#2A7841 #2A3A78 #782A61 #78682A
square
#2A7841 #2A3A78 #782A61 #78682A
split-complementary
#2A7841 #682A78 #782A3A
monochromatic
#0A1D10 #1A4B28 #2A7841 #3AA55A #58C578

Accessibility & contrast

On white

5.44
#2A7841 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#2A7841 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7841
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7841#FFFFFF#000000##FFFFFF
##2A78411.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#796E3D
Deuteranopia (green-blind)
#6F6745
Tritanopia (blue-blind)
#10766B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2a7841;
/* rgb */ color: rgb(42, 120, 65);
/* oklch */ color: oklch(51.0% 0.115 150.0);
Tailwind
colors: {
  custom: {
    50: '#6da076',
    500: '#2a7841',
    950: '#000000',
  },
}
SCSS
$custom: #2a7841;
$custom-light: #6da076;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7841",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 65
  },
  "hsl": {
    "h": 137.692,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.51047,
    "c": 0.11481,
    "h": 150
  },
  "luminance": 0.14307
}

Semantic roles & 50–950 ramp

primary
#2A7841
secondary
#AA5490
accent
#50B0D8
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070F08
muted
#7A7E7B

Preview Lab

Preview with #2A7841

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

Preview Lab → · Contrast checker → · Palette generator →

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