#2A7140#2A7140

#2A7140 is a mid, moderate green. Relative luminance 0.127; OKLCH L 49.1% C 0.105 H 150.8°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#2A7140
RGBrgb(42, 113, 64)
HSLhsl(139, 46%, 30%)
HSVhsv(139, 63%, 44%)
CMYKcmyk(62.8%, 0%, 43.4%, 55.7%)
CIE-LABlab(42.26, -34.00, 20.78)
CIE-LCHlch(42.26, 39.85, 148.57°)
OKLaboklab(49.07% -0.0919 0.0515)
OKLCHoklch(49.07% 0.105 150.8)
XYZxyz(7.7848, 12.6719, 6.8852)
Luminance0.1267 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7140 #712A5B
analogous
#37712A #2A7140 #2A7163
triadic
#2A7140 #402A71 #71402A
tetradic
#2A7140 #2A3771 #712A5B #71632A
square
#2A7140 #2A3771 #712A5B #71632A
split-complementary
#2A7140 #632A71 #712A37
monochromatic
#09180D #194427 #2A7140 #3B9E59 #55C076

Accessibility & contrast

On white

5.94
#2A7140 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#2A7140 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7140
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7140#FFFFFF#000000##FFFFFF
##2A71401.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#72683C
Deuteranopia (green-blind)
#686143
Tritanopia (blue-blind)
#146F65
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2a7140;
/* rgb */ color: rgb(42, 113, 64);
/* oklch */ color: oklch(49.1% 0.105 150.8);
Tailwind
colors: {
  custom: {
    50: '#6b9a75',
    500: '#2a7140',
    950: '#000000',
  },
}
SCSS
$custom: #2a7140;
$custom-light: #6b9a75;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7140",
  "rgb": {
    "r": 42,
    "g": 113,
    "b": 64
  },
  "hsl": {
    "h": 138.592,
    "s": 45.806,
    "l": 30.392
  },
  "oklch": {
    "l": 0.49065,
    "c": 0.10537,
    "h": 150.8
  },
  "luminance": 0.12673
}

Semantic roles & 50–950 ramp

primary
#2A7140
secondary
#A3548A
accent
#52ADD5
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070E08
muted
#7A7E7B

Preview Lab

Preview with #2A7140

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

Preview Lab → · Contrast checker → · Palette generator →

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