#2A7138#2A7138

#2A7138 is a mid, moderate green. Relative luminance 0.126; OKLCH L 48.9% C 0.114 H 147.5°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#2A7138
RGBrgb(42, 113, 56)
HSLhsl(132, 46%, 30%)
HSVhsv(132, 63%, 44%)
CMYKcmyk(62.8%, 0%, 50.4%, 55.7%)
CIE-LABlab(42.13, -35.43, 25.11)
CIE-LCHlch(42.13, 43.42, 144.68°)
OKLaboklab(48.92% -0.0958 0.0611)
OKLCHoklch(48.92% 0.114 147.5)
XYZxyz(7.5733, 12.5873, 5.7711)
Luminance0.1259 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7138 #712A63
analogous
#3F712A #2A7138 #2A715B
triadic
#2A7138 #382A71 #71382A
tetradic
#2A7138 #2A3F71 #712A63 #715B2A
square
#2A7138 #2A3F71 #712A63 #715B2A
split-complementary
#2A7138 #5B2A71 #712A3F
monochromatic
#09180C #194422 #2A7138 #3B9E4E #55C06A

Accessibility & contrast

On white

5.97
#2A7138 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#2A7138 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7138
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7138#FFFFFF#000000##FFFFFF
##2A71381.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726733
Deuteranopia (green-blind)
#69613C
Tritanopia (blue-blind)
#186F64
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #2a7138;
/* rgb */ color: rgb(42, 113, 56);
/* oklch */ color: oklch(48.9% 0.114 147.5);
Tailwind
colors: {
  custom: {
    50: '#6c9a70',
    500: '#2a7138',
    950: '#000000',
  },
}
SCSS
$custom: #2a7138;
$custom-light: #6c9a70;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7138",
  "rgb": {
    "r": 42,
    "g": 113,
    "b": 56
  },
  "hsl": {
    "h": 131.831,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.48916,
    "c": 0.11359,
    "h": 147.5
  },
  "luminance": 0.12588
}

Semantic roles & 50–950 ramp

primary
#2A7138
secondary
#A35493
accent
#52BCD5
background
#F6F9F6
surface
#ECF2EC
border
#C7CCC7
text
#070E07
muted
#7A7E7A

Preview Lab

Preview with #2A7138

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

Preview Lab → · Contrast checker → · Palette generator →

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