#2A8728#2A8728

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

Color values

HEX#2A8728
RGBrgb(42, 135, 40)
HSLhsl(119, 54%, 34%)
HSVhsv(119, 70%, 53%)
CMYKcmyk(68.9%, 0%, 70.4%, 47.1%)
CIE-LABlab(49.46, -46.11, 41.49)
CIE-LCHlch(49.46, 62.03, 138.02°)
OKLaboklab(54.91% -0.1253 0.0952)
OKLCHoklch(54.91% 0.157 142.8)
XYZxyz(10.0012, 17.9723, 4.9490)
Luminance0.1797 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8728 #852887
analogous
#5A8728 #2A8728 #288756
triadic
#2A8728 #282A87 #87282A
tetradic
#2A8728 #285A87 #852887 #875628
square
#2A8728 #285A87 #852887 #875628
split-complementary
#2A8728 #562887 #87285A
monochromatic
#0D290C #1B581A #2A8728 #39B636 #5DCE5B

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A8728#FFFFFF#000000##000000
##2A87281.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)
#8A7A1A
Deuteranopia (green-blind)
#7F7331
Tritanopia (blue-blind)
#138374
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #2a8728;
/* rgb */ color: rgb(42, 135, 40);
/* oklch */ color: oklch(54.9% 0.157 142.8);
Tailwind
colors: {
  custom: {
    50: '#71ab67',
    500: '#2a8728',
    950: '#000000',
  },
}
SCSS
$custom: #2a8728;
$custom-light: #71ab67;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8728",
  "rgb": {
    "r": 42,
    "g": 135,
    "b": 40
  },
  "hsl": {
    "h": 118.737,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.54909,
    "c": 0.15737,
    "h": 142.8
  },
  "luminance": 0.17973
}

Semantic roles & 50–950 ramp

primary
#2A8728
secondary
#B257B4
accent
#4ADEDB
background
#F7FAF6
surface
#EDF4EB
border
#C8CEC6
text
#091006
muted
#7B7F7A

Preview Lab

Preview with #2A8728

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

Preview Lab → · Contrast checker → · Palette generator →

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