#2A7939#2A7939

#2A7939 is a mid, vivid green. Relative luminance 0.145; OKLCH L 51.2% C 0.124 H 147.0°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#2A7939
RGBrgb(42, 121, 57)
HSLhsl(131, 48%, 32%)
HSVhsv(131, 65%, 47%)
CMYKcmyk(65.3%, 0%, 52.9%, 52.5%)
CIE-LABlab(44.89, -38.59, 27.99)
CIE-LCHlch(44.89, 47.67, 144.05°)
OKLaboklab(51.19% -0.1042 0.0676)
OKLCHoklch(51.19% 0.124 147)
XYZxyz(8.5302, 14.4615, 6.2119)
Luminance0.1446 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7939 #792A6A
analogous
#43792A #2A7939 #2A7961
triadic
#2A7939 #392A79 #79392A
tetradic
#2A7939 #2A4379 #792A6A #79612A
square
#2A7939 #2A4379 #792A6A #79612A
split-complementary
#2A7939 #612A79 #792A43
monochromatic
#0A1E0E #1A4C24 #2A7939 #3AA64E #58C56D

Accessibility & contrast

On white

5.40
#2A7939 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#2A7939 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7939
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7939#FFFFFF#000000##FFFFFF
##2A79391.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6E34
Deuteranopia (green-blind)
#71673E
Tritanopia (blue-blind)
#14766A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #2a7939;
/* rgb */ color: rgb(42, 121, 57);
/* oklch */ color: oklch(51.2% 0.124 147.0);
Tailwind
colors: {
  custom: {
    50: '#6da071',
    500: '#2a7939',
    950: '#000000',
  },
}
SCSS
$custom: #2a7939;
$custom-light: #6da071;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7939",
  "rgb": {
    "r": 42,
    "g": 121,
    "b": 57
  },
  "hsl": {
    "h": 131.392,
    "s": 48.466,
    "l": 31.961
  },
  "oklch": {
    "l": 0.51188,
    "c": 0.12425,
    "h": 147
  },
  "luminance": 0.14462
}

Semantic roles & 50–950 ramp

primary
#2A7939
secondary
#AB549A
accent
#50BED8
background
#F6F9F6
surface
#ECF2EC
border
#C7CCC7
text
#080F08
muted
#7B7E7B

Preview Lab

Preview with #2A7939

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

Preview Lab → · Contrast checker → · Palette generator →

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