#2A7239#2A7239

#2A7239 is a mid, moderate green. Relative luminance 0.128; OKLCH L 49.2% C 0.114 H 147.7°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#2A7239
RGBrgb(42, 114, 57)
HSLhsl(133, 46%, 31%)
HSVhsv(133, 63%, 45%)
CMYKcmyk(63.2%, 0%, 50%, 55.3%)
CIE-LABlab(42.49, -35.68, 25.00)
CIE-LCHlch(42.49, 43.57, 144.98°)
OKLaboklab(49.22% -0.0964 0.0609)
OKLCHoklch(49.22% 0.114 147.7)
XYZxyz(7.7102, 12.8215, 5.9386)
Luminance0.1282 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7239 #722A63
analogous
#3F722A #2A7239 #2A725D
triadic
#2A7239 #392A72 #72392A
tetradic
#2A7239 #2A3F72 #722A63 #725D2A
square
#2A7239 #2A3F72 #722A63 #725D2A
split-complementary
#2A7239 #5D2A72 #722A3F
monochromatic
#09190C #1A4523 #2A7239 #3A9F4F #56C16C

Accessibility & contrast

On white

5.89
#2A7239 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#2A7239 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7239
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7239#FFFFFF#000000##FFFFFF
##2A72391.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#736834
Deuteranopia (green-blind)
#6A623D
Tritanopia (blue-blind)
#177065
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #2a7239;
/* rgb */ color: rgb(42, 114, 57);
/* oklch */ color: oklch(49.2% 0.114 147.7);
Tailwind
colors: {
  custom: {
    50: '#6c9b70',
    500: '#2a7239',
    950: '#000000',
  },
}
SCSS
$custom: #2a7239;
$custom-light: #6c9b70;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7239",
  "rgb": {
    "r": 42,
    "g": 114,
    "b": 57
  },
  "hsl": {
    "h": 132.5,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.49216,
    "c": 0.11406,
    "h": 147.7
  },
  "luminance": 0.12822
}

Semantic roles & 50–950 ramp

primary
#2A7239
secondary
#A45493
accent
#52BAD6
background
#F6F9F6
surface
#ECF2EC
border
#C7CCC7
text
#070E07
muted
#7A7E7A

Preview Lab

Preview with #2A7239

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

Preview Lab → · Contrast checker → · Palette generator →

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