#2A7540#2A7540

#2A7540 is a mid, moderate green. Relative luminance 0.136; OKLCH L 50.2% C 0.111 H 150.1°. Best body text is #FFFFFF at 5.65:1 contrast (WCAG AA passes).

Color values

HEX#2A7540
RGBrgb(42, 117, 64)
HSLhsl(138, 47%, 31%)
HSVhsv(138, 64%, 46%)
CMYKcmyk(64.1%, 0%, 45.3%, 54.1%)
CIE-LABlab(43.63, -35.73, 22.55)
CIE-LCHlch(43.63, 42.25, 147.74°)
OKLaboklab(50.19% -0.0965 0.0556)
OKLCHoklch(50.19% 0.111 150.1)
XYZxyz(8.2409, 13.5842, 7.0372)
Luminance0.1358 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7540 #752A5F
analogous
#39752A #2A7540 #2A7565
triadic
#2A7540 #402A75 #75402A
tetradic
#2A7540 #2A3975 #752A5F #75652A
square
#2A7540 #2A3975 #752A5F #75652A
split-complementary
#2A7540 #652A75 #752A39
monochromatic
#0A1B0F #1A4827 #2A7540 #3AA259 #57C376

Accessibility & contrast

On white

5.65
#2A7540 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#2A7540 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7540
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7540#FFFFFF#000000##FFFFFF
##2A75401.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#766B3C
Deuteranopia (green-blind)
#6C6444
Tritanopia (blue-blind)
#127368
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #2a7540;
/* rgb */ color: rgb(42, 117, 64);
/* oklch */ color: oklch(50.2% 0.111 150.1);
Tailwind
colors: {
  custom: {
    50: '#6c9d75',
    500: '#2a7540',
    950: '#000000',
  },
}
SCSS
$custom: #2a7540;
$custom-light: #6c9d75;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7540",
  "rgb": {
    "r": 42,
    "g": 117,
    "b": 64
  },
  "hsl": {
    "h": 137.6,
    "s": 47.17,
    "l": 31.176
  },
  "oklch": {
    "l": 0.50188,
    "c": 0.11138,
    "h": 150.1
  },
  "luminance": 0.13585
}

Semantic roles & 50–950 ramp

primary
#2A7540
secondary
#A7548F
accent
#51B0D7
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070E08
muted
#7A7E7B

Preview Lab

Preview with #2A7540

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

Preview Lab → · Contrast checker → · Palette generator →

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