#2A7240#2A7240

#2A7240 is a mid, moderate green. Relative luminance 0.129; OKLCH L 49.3% C 0.107 H 150.6°. Best body text is #FFFFFF at 5.87:1 contrast (WCAG AA passes).

Color values

HEX#2A7240
RGBrgb(42, 114, 64)
HSLhsl(138, 46%, 31%)
HSVhsv(138, 63%, 45%)
CMYKcmyk(63.2%, 0%, 43.9%, 55.3%)
CIE-LABlab(42.61, -34.44, 21.22)
CIE-LCHlch(42.61, 40.45, 148.36°)
OKLaboklab(49.35% -0.0931 0.0525)
OKLCHoklch(49.35% 0.107 150.6)
XYZxyz(7.8970, 12.8963, 6.9226)
Luminance0.1290 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7240 #722A5C
analogous
#38722A #2A7240 #2A7264
triadic
#2A7240 #402A72 #72402A
tetradic
#2A7240 #2A3872 #722A5C #72642A
square
#2A7240 #2A3872 #722A5C #72642A
split-complementary
#2A7240 #642A72 #722A38
monochromatic
#09190E #1A4527 #2A7240 #3A9F59 #56C176

Accessibility & contrast

On white

5.87
#2A7240 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#2A7240 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7240
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7240#FFFFFF#000000##FFFFFF
##2A72401.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#73693C
Deuteranopia (green-blind)
#696243
Tritanopia (blue-blind)
#147066
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2a7240;
/* rgb */ color: rgb(42, 114, 64);
/* oklch */ color: oklch(49.3% 0.107 150.6);
Tailwind
colors: {
  custom: {
    50: '#6c9b75',
    500: '#2a7240',
    950: '#000000',
  },
}
SCSS
$custom: #2a7240;
$custom-light: #6c9b75;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7240",
  "rgb": {
    "r": 42,
    "g": 114,
    "b": 64
  },
  "hsl": {
    "h": 138.333,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.49346,
    "c": 0.10688,
    "h": 150.6
  },
  "luminance": 0.12897
}

Semantic roles & 50–950 ramp

primary
#2A7240
secondary
#A4548B
accent
#52AED6
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070E08
muted
#7A7E7B

Preview Lab

Preview with #2A7240

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

Preview Lab → · Contrast checker → · Palette generator →

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