#2A7245#2A7245

#2A7245 is a mid, moderate green. Relative luminance 0.130; OKLCH L 49.5% C 0.102 H 153.0°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#2A7245
RGBrgb(42, 114, 69)
HSLhsl(143, 46%, 31%)
HSVhsv(143, 63%, 45%)
CMYKcmyk(63.2%, 0%, 39.5%, 55.3%)
CIE-LABlab(42.70, -33.46, 18.47)
CIE-LCHlch(42.70, 38.22, 151.10°)
OKLaboklab(49.45% -0.0906 0.0461)
OKLCHoklch(49.45% 0.102 153)
XYZxyz(8.0457, 12.9558, 7.7058)
Luminance0.1296 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7245 #722A57
analogous
#33722A #2A7245 #2A7269
triadic
#2A7245 #452A72 #72452A
tetradic
#2A7245 #2A3372 #722A57 #72692A
square
#2A7245 #2A3372 #722A57 #72692A
split-complementary
#2A7245 #692A72 #722A33
monochromatic
#09190F #1A452A #2A7245 #3A9F60 #56C17E

Accessibility & contrast

On white

5.85
#2A7245 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#2A7245 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7245
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7245#FFFFFF#000000##FFFFFF
##2A72451.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#726942
Deuteranopia (green-blind)
#686248
Tritanopia (blue-blind)
#117167
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #2a7245;
/* rgb */ color: rgb(42, 114, 69);
/* oklch */ color: oklch(49.5% 0.102 153.0);
Tailwind
colors: {
  custom: {
    50: '#6b9b79',
    500: '#2a7245',
    950: '#000000',
  },
}
SCSS
$custom: #2a7245;
$custom-light: #6b9b79;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7245",
  "rgb": {
    "r": 42,
    "g": 114,
    "b": 69
  },
  "hsl": {
    "h": 142.5,
    "s": 46.154,
    "l": 30.588
  },
  "oklch": {
    "l": 0.4945,
    "c": 0.1017,
    "h": 153
  },
  "luminance": 0.12957
}

Semantic roles & 50–950 ramp

primary
#2A7245
secondary
#A45486
accent
#52A4D6
background
#F6F9F7
surface
#ECF2ED
border
#C7CCC8
text
#070E09
muted
#7A7E7B

Preview Lab

Preview with #2A7245

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

Preview Lab → · Contrast checker → · Palette generator →

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