#2A7545#2A7545

#2A7545 is a mid, moderate green. Relative luminance 0.136; OKLCH L 50.3% C 0.106 H 152.3°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#2A7545
RGBrgb(42, 117, 69)
HSLhsl(142, 47%, 31%)
HSVhsv(142, 64%, 46%)
CMYKcmyk(64.1%, 0%, 41%, 54.1%)
CIE-LABlab(43.72, -34.78, 19.83)
CIE-LCHlch(43.72, 40.03, 150.32°)
OKLaboklab(50.29% -0.0941 0.0494)
OKLCHoklch(50.29% 0.106 152.3)
XYZxyz(8.3896, 13.6437, 7.8204)
Luminance0.1364 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7545 #752A5A
analogous
#34752A #2A7545 #2A756A
triadic
#2A7545 #452A75 #75452A
tetradic
#2A7545 #2A3475 #752A5A #756A2A
square
#2A7545 #2A3475 #752A5A #756A2A
split-complementary
#2A7545 #6A2A75 #752A34
monochromatic
#0A1B10 #1A482A #2A7545 #3AA260 #57C37E

Accessibility & contrast

On white

5.63
#2A7545 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#2A7545 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7545
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7545#FFFFFF#000000##FFFFFF
##2A75451.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#756B42
Deuteranopia (green-blind)
#6B6548
Tritanopia (blue-blind)
#0F7369
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #2a7545;
/* rgb */ color: rgb(42, 117, 69);
/* oklch */ color: oklch(50.3% 0.106 152.3);
Tailwind
colors: {
  custom: {
    50: '#6c9d79',
    500: '#2a7545',
    950: '#000000',
  },
}
SCSS
$custom: #2a7545;
$custom-light: #6c9d79;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7545",
  "rgb": {
    "r": 42,
    "g": 117,
    "b": 69
  },
  "hsl": {
    "h": 141.6,
    "s": 47.17,
    "l": 31.176
  },
  "oklch": {
    "l": 0.50288,
    "c": 0.10625,
    "h": 152.3
  },
  "luminance": 0.13644
}

Semantic roles & 50–950 ramp

primary
#2A7545
secondary
#A75489
accent
#51A7D7
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070E09
muted
#7A7E7B

Preview Lab

Preview with #2A7545

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

Preview Lab → · Contrast checker → · Palette generator →

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