#2A7840#2A7840

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

Color values

HEX#2A7840
RGBrgb(42, 120, 64)
HSLhsl(137, 48%, 32%)
HSVhsv(137, 65%, 47%)
CMYKcmyk(65%, 0%, 46.7%, 52.9%)
CIE-LABlab(44.65, -37.00, 23.86)
CIE-LCHlch(44.65, 44.03, 147.18°)
OKLaboklab(51.03% -0.0999 0.0586)
OKLCHoklch(51.03% 0.116 149.6)
XYZxyz(8.5961, 14.2945, 7.1556)
Luminance0.1429 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7840 #782A62
analogous
#3B782A #2A7840 #2A7867
triadic
#2A7840 #402A78 #78402A
tetradic
#2A7840 #2A3B78 #782A62 #78672A
square
#2A7840 #2A3B78 #782A62 #78672A
split-complementary
#2A7840 #672A78 #782A3B
monochromatic
#0A1D10 #1A4B28 #2A7840 #3AA558 #58C577

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A7840#FFFFFF#000000##FFFFFF
##2A78401.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)
#796E3C
Deuteranopia (green-blind)
#6F6744
Tritanopia (blue-blind)
#11766A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2a7840;
/* rgb */ color: rgb(42, 120, 64);
/* oklch */ color: oklch(51.0% 0.116 149.6);
Tailwind
colors: {
  custom: {
    50: '#6da075',
    500: '#2a7840',
    950: '#000000',
  },
}
SCSS
$custom: #2a7840;
$custom-light: #6da075;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7840",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 64
  },
  "hsl": {
    "h": 136.923,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.51029,
    "c": 0.11582,
    "h": 149.6
  },
  "luminance": 0.14295
}

Semantic roles & 50–950 ramp

primary
#2A7840
secondary
#AA5492
accent
#50B1D8
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#080F08
muted
#7B7E7B

Preview Lab

Preview with #2A7840

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

Preview Lab → · Contrast checker → · Palette generator →

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