#2A7E34#2A7E34

#2A7E34 is a mid, vivid green. Relative luminance 0.157; OKLCH L 52.5% C 0.136 H 145.3°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#2A7E34
RGBrgb(42, 126, 52)
HSLhsl(127, 50%, 33%)
HSVhsv(127, 67%, 49%)
CMYKcmyk(66.7%, 0%, 58.7%, 50.6%)
CIE-LABlab(46.53, -41.32, 32.57)
CIE-LCHlch(46.53, 52.62, 141.75°)
OKLaboklab(52.52% -0.1118 0.0774)
OKLCHoklch(52.52% 0.136 145.3)
XYZxyz(9.0350, 15.6610, 5.7949)
Luminance0.1566 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A7E34 #7E2A74
analogous
#4A7E2A #2A7E34 #2A7E5E
triadic
#2A7E34 #342A7E #7E342A
tetradic
#2A7E34 #2A4A7E #7E2A74 #7E5E2A
square
#2A7E34 #2A4A7E #7E2A74 #7E5E2A
split-complementary
#2A7E34 #5E2A7E #7E2A4A
monochromatic
#0B220E #1B5021 #2A7E34 #39AC47 #5AC867

Accessibility & contrast

On white

5.08
#2A7E34 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#2A7E34 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A7E34
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A7E34#FFFFFF#000000##FFFFFF
##2A7E341.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#80732D
Deuteranopia (green-blind)
#766B3A
Tritanopia (blue-blind)
#147B6E
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a7e34;
/* rgb */ color: rgb(42, 126, 52);
/* oklch */ color: oklch(52.5% 0.136 145.3);
Tailwind
colors: {
  custom: {
    50: '#6fa46e',
    500: '#2a7e34',
    950: '#000000',
  },
}
SCSS
$custom: #2a7e34;
$custom-light: #6fa46e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a7e34",
  "rgb": {
    "r": 42,
    "g": 126,
    "b": 52
  },
  "hsl": {
    "h": 127.143,
    "s": 50,
    "l": 32.941
  },
  "oklch": {
    "l": 0.5252,
    "c": 0.13594,
    "h": 145.3
  },
  "luminance": 0.15662
}

Semantic roles & 50–950 ramp

primary
#2A7E34
secondary
#AE56A3
accent
#4EC9DA
background
#F7FAF6
surface
#EDF4EC
border
#C8CEC7
text
#080F07
muted
#7B7F7A

Preview Lab

Preview with #2A7E34

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

Preview Lab → · Contrast checker → · Palette generator →

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