#2A7837#2A7837

#2A7837 is a mid, vivid green. Relative luminance 0.142; OKLCH L 50.9% C 0.125 H 146.5°. Best body text is #FFFFFF at 5.47:1 contrast (WCAG AA passes).

Color values

HEX#2A7837
RGBrgb(42, 120, 55)
HSLhsl(130, 48%, 32%)
HSVhsv(130, 65%, 47%)
CMYKcmyk(65%, 0%, 54.2%, 52.9%)
CIE-LABlab(44.52, -38.49, 28.60)
CIE-LCHlch(44.52, 47.95, 143.39°)
OKLaboklab(50.88% -0.104 0.0689)
OKLCHoklch(50.88% 0.125 146.5)
XYZxyz(8.3603, 14.2002, 5.9140)
Luminance0.1420 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7837 #782A6B
analogous
#44782A #2A7837 #2A785E
triadic
#2A7837 #372A78 #78372A
tetradic
#2A7837 #2A4478 #782A6B #785E2A
square
#2A7837 #2A4478 #782A6B #785E2A
split-complementary
#2A7837 #5E2A78 #782A44
monochromatic
#0A1D0D #1A4B22 #2A7837 #3AA54C #58C56A

Accessibility & contrast

On white

5.47
#2A7837 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.84
#2A7837 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7837
5.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7837#FFFFFF#000000##FFFFFF
##2A78371.005.473.845.47
#FFFFFF5.471.0021.001.00
#0000003.8421.001.0021.00
##FFFFFF5.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A6D31
Deuteranopia (green-blind)
#70673C
Tritanopia (blue-blind)
#167569
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #2a7837;
/* rgb */ color: rgb(42, 120, 55);
/* oklch */ color: oklch(50.9% 0.125 146.5);
Tailwind
colors: {
  custom: {
    50: '#6da06f',
    500: '#2a7837',
    950: '#000000',
  },
}
SCSS
$custom: #2a7837;
$custom-light: #6da06f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7837",
  "rgb": {
    "r": 42,
    "g": 120,
    "b": 55
  },
  "hsl": {
    "h": 130,
    "s": 48.148,
    "l": 31.765
  },
  "oklch": {
    "l": 0.50875,
    "c": 0.12476,
    "h": 146.5
  },
  "luminance": 0.14201
}

Semantic roles & 50–950 ramp

primary
#2A7837
secondary
#AA549B
accent
#50C1D8
background
#F6F9F6
surface
#ECF2EC
border
#C7CCC7
text
#080F07
muted
#7B7E7A

Preview Lab

Preview with #2A7837

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

Preview Lab → · Contrast checker → · Palette generator →

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