#2A7845#2A7845

#2A7845 is a mid, moderate green. Relative luminance 0.144; OKLCH L 51.1% C 0.111 H 151.7°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#2A7845
RGBrgb(42, 120, 69)
HSLhsl(141, 48%, 32%)
HSVhsv(141, 65%, 47%)
CMYKcmyk(65%, 0%, 42.5%, 52.9%)
CIE-LABlab(44.74, -36.07, 21.16)
CIE-LCHlch(44.74, 41.82, 149.60°)
OKLaboklab(51.13% -0.0975 0.0525)
OKLCHoklch(51.13% 0.111 151.7)
XYZxyz(8.7448, 14.3540, 7.9388)
Luminance0.1436 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7845 #782A5D
analogous
#36782A #2A7845 #2A786C
triadic
#2A7845 #452A78 #78452A
tetradic
#2A7845 #2A3678 #782A5D #786C2A
square
#2A7845 #2A3678 #782A5D #786C2A
split-complementary
#2A7845 #6C2A78 #782A36
monochromatic
#0A1D11 #1A4B2B #2A7845 #3AA55F #58C57D

Accessibility & contrast

On white

5.42
#2A7845 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#2A7845 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7845
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7845#FFFFFF#000000##FFFFFF
##2A78451.005.423.875.42
#FFFFFF5.421.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#786E41
Deuteranopia (green-blind)
#6E6748
Tritanopia (blue-blind)
#0D766B
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2a7845;
/* rgb */ color: rgb(42, 120, 69);
/* oklch */ color: oklch(51.1% 0.111 151.7);
Tailwind
colors: {
  custom: {
    50: '#6da079',
    500: '#2a7845',
    950: '#000000',
  },
}
SCSS
$custom: #2a7845;
$custom-light: #6da079;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7845",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 69
  },
  "hsl": {
    "h": 140.769,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.51125,
    "c": 0.11074,
    "h": 151.7
  },
  "luminance": 0.14355
}

Semantic roles & 50–950 ramp

primary
#2A7845
secondary
#AA548C
accent
#50A9D8
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070F09
muted
#7A7E7B

Preview Lab

Preview with #2A7845

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

Preview Lab → · Contrast checker → · Palette generator →

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