#2A8828#2A8828

#2A8828 is a mid, vivid green. Relative luminance 0.183; OKLCH L 55.2% C 0.159 H 142.8°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#2A8828
RGBrgb(42, 136, 40)
HSLhsl(119, 55%, 35%)
HSVhsv(119, 71%, 53%)
CMYKcmyk(69.1%, 0%, 70.6%, 46.7%)
CIE-LABlab(49.80, -46.48, 41.85)
CIE-LCHlch(49.80, 62.54, 138.00°)
OKLaboklab(55.19% -0.1263 0.0959)
OKLCHoklch(55.19% 0.159 142.8)
XYZxyz(10.1414, 18.2527, 4.9957)
Luminance0.1825 (WCAG relative)
Temperatureneutral
Familygreen

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A8828 #862888
analogous
#5A8828 #2A8828 #288856
triadic
#2A8828 #282A88 #88282A
tetradic
#2A8828 #285A88 #862888 #885628
square
#2A8828 #285A88 #862888 #885628
split-complementary
#2A8828 #562888 #88285A
monochromatic
#0D290C #1B591A #2A8828 #39B736 #5ECF5B

Accessibility & contrast

On white

4.52
#2A8828 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#2A8828 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2A8828
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A8828#FFFFFF#000000##000000
##2A88281.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#8B7B1A
Deuteranopia (green-blind)
#807431
Tritanopia (blue-blind)
#138475
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #2a8828;
/* rgb */ color: rgb(42, 136, 40);
/* oklch */ color: oklch(55.2% 0.159 142.8);
Tailwind
colors: {
  custom: {
    50: '#71ac67',
    500: '#2a8828',
    950: '#000000',
  },
}
SCSS
$custom: #2a8828;
$custom-light: #71ac67;
$custom-dark: #000000;
JSON
{
  "hex": "#2a8828",
  "rgb": {
    "r": 42,
    "g": 136,
    "b": 40
  },
  "hsl": {
    "h": 118.75,
    "s": 54.545,
    "l": 34.51
  },
  "oklch": {
    "l": 0.5519,
    "c": 0.15861,
    "h": 142.8
  },
  "luminance": 0.18254
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A8828

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

Preview Lab → · Contrast checker → · Palette generator →

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