#2A7B45#2A7B45

#2A7B45 is a mid, moderate green. Relative luminance 0.151; OKLCH L 52.0% C 0.115 H 151.1°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#2A7B45
RGBrgb(42, 123, 69)
HSLhsl(140, 49%, 32%)
HSVhsv(140, 66%, 48%)
CMYKcmyk(65.9%, 0%, 43.9%, 51.8%)
CIE-LABlab(45.75, -37.34, 22.49)
CIE-LCHlch(45.75, 43.59, 148.94°)
OKLaboklab(51.96% -0.1008 0.0556)
OKLCHoklch(51.96% 0.115 151.1)
XYZxyz(9.1113, 15.0869, 8.0610)
Luminance0.1509 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7B45 #7B2A60
analogous
#387B2A #2A7B45 #2A7B6E
triadic
#2A7B45 #452A7B #7B452A
tetradic
#2A7B45 #2A387B #7B2A60 #7B6E2A
square
#2A7B45 #2A387B #7B2A60 #7B6E2A
split-complementary
#2A7B45 #6E2A7B #7B2A38
monochromatic
#0B2012 #1A4D2B #2A7B45 #3AA95F #59C67D

Accessibility & contrast

On white

5.23
#2A7B45 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#2A7B45 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7B45
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7B45#FFFFFF#000000##FFFFFF
##2A7B451.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#7C7141
Deuteranopia (green-blind)
#716949
Tritanopia (blue-blind)
#0B796E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2a7b45;
/* rgb */ color: rgb(42, 123, 69);
/* oklch */ color: oklch(52.0% 0.115 151.1);
Tailwind
colors: {
  custom: {
    50: '#6da279',
    500: '#2a7b45',
    950: '#000000',
  },
}
SCSS
$custom: #2a7b45;
$custom-light: #6da279;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7b45",
  "rgb": {
    "r": 42,
    "g": 123,
    "b": 69
  },
  "hsl": {
    "h": 140,
    "s": 49.091,
    "l": 32.353
  },
  "oklch": {
    "l": 0.51962,
    "c": 0.11517,
    "h": 151.1
  },
  "luminance": 0.15088
}

Semantic roles & 50–950 ramp

primary
#2A7B45
secondary
#AC558F
accent
#4FABD9
background
#F6FAF7
surface
#ECF3ED
border
#C7CDC8
text
#080F09
muted
#7B7F7B

Preview Lab

Preview with #2A7B45

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

Preview Lab → · Contrast checker → · Palette generator →

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