#2A7A3E#2A7A3E

#2A7A3E is a mid, vivid green. Relative luminance 0.148; OKLCH L 51.6% C 0.121 H 148.6°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#2A7A3E
RGBrgb(42, 122, 62)
HSLhsl(135, 49%, 32%)
HSVhsv(135, 66%, 48%)
CMYKcmyk(65.6%, 0%, 49.2%, 52.2%)
CIE-LABlab(45.30, -38.18, 25.79)
CIE-LCHlch(45.30, 46.07, 145.96°)
OKLaboklab(51.55% -0.1031 0.0629)
OKLCHoklch(51.55% 0.121 148.6)
XYZxyz(8.7832, 14.7582, 6.9422)
Luminance0.1476 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7A3E #7A2A66
analogous
#3E7A2A #2A7A3E #2A7A66
triadic
#2A7A3E #3E2A7A #7A3E2A
tetradic
#2A7A3E #2A3E7A #7A2A66 #7A662A
square
#2A7A3E #2A3E7A #7A2A66 #7A662A
split-complementary
#2A7A3E #662A7A #7A2A3E
monochromatic
#0B1F10 #1A4C27 #2A7A3E #3AA855 #59C674

Accessibility & contrast

On white

5.31
#2A7A3E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#2A7A3E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7A3E
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7A3E#FFFFFF#000000##FFFFFF
##2A7A3E1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7B6F39
Deuteranopia (green-blind)
#716842
Tritanopia (blue-blind)
#11786C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a7a3e;
/* rgb */ color: rgb(42, 122, 62);
/* oklch */ color: oklch(51.6% 0.121 148.6);
Tailwind
colors: {
  custom: {
    50: '#6da174',
    500: '#2a7a3e',
    950: '#000000',
  },
}
SCSS
$custom: #2a7a3e;
$custom-light: #6da174;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7a3e",
  "rgb": {
    "r": 42,
    "g": 122,
    "b": 62
  },
  "hsl": {
    "h": 135,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.51553,
    "c": 0.12075,
    "h": 148.6
  },
  "luminance": 0.14759
}

Semantic roles & 50–950 ramp

primary
#2A7A3E
secondary
#AB5596
accent
#4FB6D8
background
#F6FAF7
surface
#ECF3ED
border
#C7CDC8
text
#080F08
muted
#7A7F7B

Preview Lab

Preview with #2A7A3E

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

Preview Lab → · Contrast checker → · Palette generator →

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