#2A8727#2A8727

#2A8727 is a mid, vivid green. Relative luminance 0.180; OKLCH L 54.9% C 0.158 H 142.6°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#2A8727
RGBrgb(42, 135, 39)
HSLhsl(118, 55%, 34%)
HSVhsv(118, 71%, 53%)
CMYKcmyk(68.9%, 0%, 71.1%, 47.1%)
CIE-LABlab(49.45, -46.21, 41.90)
CIE-LCHlch(49.45, 62.38, 137.80°)
OKLaboklab(54.9% -0.1256 0.0959)
OKLCHoklch(54.9% 0.158 142.6)
XYZxyz(9.9845, 17.9656, 4.8606)
Luminance0.1797 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8727 #842787
analogous
#5A8727 #2A8727 #278754
triadic
#2A8727 #272A87 #87272A
tetradic
#2A8727 #275A87 #842787 #875427
square
#2A8727 #275A87 #842787 #875427
split-complementary
#2A8727 #542787 #87275A
monochromatic
#0C280C #1B5819 #2A8727 #39B635 #5DCF59

Accessibility & contrast

On white

4.57
#2A8727 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#2A8727 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8727
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8727#FFFFFF#000000##000000
##2A87271.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#8A7A19
Deuteranopia (green-blind)
#7F7330
Tritanopia (blue-blind)
#148374
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #2a8727;
/* rgb */ color: rgb(42, 135, 39);
/* oklch */ color: oklch(54.9% 0.158 142.6);
Tailwind
colors: {
  custom: {
    50: '#71ab67',
    500: '#2a8727',
    950: '#000000',
  },
}
SCSS
$custom: #2a8727;
$custom-light: #71ab67;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8727",
  "rgb": {
    "r": 42,
    "g": 135,
    "b": 39
  },
  "hsl": {
    "h": 118.125,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.549,
    "c": 0.15808,
    "h": 142.6
  },
  "luminance": 0.17967
}

Semantic roles & 50–950 ramp

primary
#2A8727
secondary
#B156B4
accent
#49DFDA
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2A8727

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

Preview Lab → · Contrast checker → · Palette generator →

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