#2A7A45#2A7A45

#2A7A45 is a mid, moderate green. Relative luminance 0.148; OKLCH L 51.7% C 0.114 H 151.3°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#2A7A45
RGBrgb(42, 122, 69)
HSLhsl(140, 49%, 32%)
HSVhsv(140, 66%, 48%)
CMYKcmyk(65.6%, 0%, 43.4%, 52.2%)
CIE-LABlab(45.41, -36.92, 22.05)
CIE-LCHlch(45.41, 43.01, 149.15°)
OKLaboklab(51.68% -0.0997 0.0546)
OKLCHoklch(51.68% 0.114 151.3)
XYZxyz(8.9878, 14.8401, 8.0198)
Luminance0.1484 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7A45 #7A2A5F
analogous
#377A2A #2A7A45 #2A7A6D
triadic
#2A7A45 #452A7A #7A452A
tetradic
#2A7A45 #2A377A #7A2A5F #7A6D2A
square
#2A7A45 #2A377A #7A2A5F #7A6D2A
split-complementary
#2A7A45 #6D2A7A #7A2A37
monochromatic
#0B1F12 #1A4C2B #2A7A45 #3AA85F #59C67D

Accessibility & contrast

On white

5.29
#2A7A45 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#2A7A45 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7A45
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7A45#FFFFFF#000000##FFFFFF
##2A7A451.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7A7041
Deuteranopia (green-blind)
#706949
Tritanopia (blue-blind)
#0B786D
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2a7a45;
/* rgb */ color: rgb(42, 122, 69);
/* oklch */ color: oklch(51.7% 0.114 151.3);
Tailwind
colors: {
  custom: {
    50: '#6da179',
    500: '#2a7a45',
    950: '#000000',
  },
}
SCSS
$custom: #2a7a45;
$custom-light: #6da179;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7a45",
  "rgb": {
    "r": 42,
    "g": 122,
    "b": 69
  },
  "hsl": {
    "h": 140.25,
    "s": 48.78,
    "l": 32.157
  },
  "oklch": {
    "l": 0.51683,
    "c": 0.1137,
    "h": 151.3
  },
  "luminance": 0.14841
}

Semantic roles & 50–950 ramp

primary
#2A7A45
secondary
#AB558E
accent
#4FAAD8
background
#F6FAF7
surface
#ECF3ED
border
#C7CDC8
text
#080F09
muted
#7B7F7B

Preview Lab

Preview with #2A7A45

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

Preview Lab → · Contrast checker → · Palette generator →

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